]> git.draconx.ca Git - gentoo-draconx.git/commitdiff
Add notmuchfs ebuild.
authorNick Bowler <nbowler@draconx.ca>
Thu, 21 Jan 2016 04:17:42 +0000 (23:17 -0500)
committerNick Bowler <nbowler@draconx.ca>
Thu, 21 Jan 2016 04:52:09 +0000 (23:52 -0500)
net-mail/notmuchfs/Manifest [new file with mode: 0644]
net-mail/notmuchfs/files/notmuchfs-fix-build.patch [new file with mode: 0644]
net-mail/notmuchfs/notmuchfs-0.1_p20140226.ebuild [new file with mode: 0644]

diff --git a/net-mail/notmuchfs/Manifest b/net-mail/notmuchfs/Manifest
new file mode 100644 (file)
index 0000000..0490614
--- /dev/null
@@ -0,0 +1,3 @@
+AUX notmuchfs-fix-build.patch 761 SHA256 d7c0253cb96c6791aab3cf489b9b8d590198fc60b168bb286c032e0c2b3bcaaa SHA512 98bfdf6df6796313edcdd782e369cf5e778ed67d13e99eb00e299449603daa39666e3589336e71070dce87421593b5e07a69e6afa979897b3bd496bf3731b21c WHIRLPOOL 196d1de96f68403ad5de84dbf98c07a7188413a16cf763b8cc736899a6038b968593a915d664f2416afdfdc428f09189378ca8d24d027c08e23d7c3bc72cead7
+DIST 1f34bc6d30fdffb98ad98387c93a8a5824703639.tar.gz 28530 SHA256 9d4ec845cdb56254612d0740f8d0c7cc328ffbef365a051f629d84a6f833ef58 SHA512 f0a407ba8481d43079e667065acf092eef73ec082b78c7ad5217659755454bf808e7f438bb0567c4f642fff2f3536bf06c37826b51f1771ae4ae899dbf978ab9 WHIRLPOOL f5c34d11573a2b5dead8ee5a2e37a21b9ef6aca9238e22c1d5c47f0cd739916262db084c5037cc75dbcf64662437d9209b8400bef329aa135916a192eba6609b
+EBUILD notmuchfs-0.1_p20140226.ebuild 733 SHA256 0ceafffeaee003dff0d0debf0da7a4778b4dcd1b48225686a65ca831b502a93b SHA512 4eea482c53b66dbb01f97dddee3bfbe08b988a886b27bc15c7ebad13ea5060aa3cb6a7ad8f4a641858db7831582ebd95f78991a43c9e9556128a4e322c7464e0 WHIRLPOOL fa06afac2e5f3cda0ab06d9878f253cfab02be88977f399068033bcc9bba9464812f8b4a1646ae8354f6ed6601226184fd544561ff8ec2ee33769426f52a9232
diff --git a/net-mail/notmuchfs/files/notmuchfs-fix-build.patch b/net-mail/notmuchfs/files/notmuchfs-fix-build.patch
new file mode 100644 (file)
index 0000000..a03c7e7
--- /dev/null
@@ -0,0 +1,32 @@
+diff --git a/Makefile b/Makefile
+index 7c13b9275e0f..25765f76110e 100644
+--- a/Makefile
++++ b/Makefile
+@@ -19,7 +19,7 @@
+ #
+ # Authors: Tim Stoakes <tim@stoakes.net>
+-CFLAGS = -g -O2 -std=c99 -Wall -Werror -D_FILE_OFFSET_BITS=64
++ALL_CFLAGS = -std=c99 -D_FILE_OFFSET_BITS=64 $(CFLAGS)
+ OBJS = notmuchfs.o
+@@ -28,16 +28,10 @@ LIBS = -lnotmuch -lfuse
+ all: notmuchfs
+ notmuchfs: $(OBJS)
+-      $(CC) -o $@ $+ $(LIBS)
++      $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $+ $(LIBS)
+ clean:
+       rm -f *.o *.dep notmuchfs
+ %.o : %.c
+-      $(COMPILE.c) -MD -o $@ $<
+-      @cp $*.d $*.dep; \
+-    sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
+-        -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.dep; \
+-    rm -f $*.d
+-
+--include $(OBJS:.o=.dep)
++      $(CC) $(ALL_CFLAGS) -c -o $@ $<
diff --git a/net-mail/notmuchfs/notmuchfs-0.1_p20140226.ebuild b/net-mail/notmuchfs/notmuchfs-0.1_p20140226.ebuild
new file mode 100644 (file)
index 0000000..46e1913
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright © 2015-2016 Nick Bowler
+# License GPLv3+: GNU General Public License version 3 or later.
+# There is NO WARRANTY, to the extent permitted by law.
+
+EAPI=6
+
+inherit toolchain-funcs
+
+SHA1=1f34bc6d30fdffb98ad98387c93a8a5824703639
+
+DESCRIPTION="Virtual maildir filesystem for notmuch queries"
+HOMEPAGE="https://github.com/tsto/notmuchfs/"
+SRC_URI="https://github.com/tsto/notmuchfs/archive/$SHA1.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="net-mail/notmuch
+       sys-fs/fuse"
+RDEPEND=$DEPEND
+
+S=$WORKDIR/$PN-$SHA1
+
+PATCHES=(
+       "$FILESDIR/$PN-fix-build.patch"
+       )
+
+src_compile() {
+       emake CC=$(tc-getCC)
+}
+
+src_install() {
+       dobin notmuchfs
+       dodoc README.md README.MUTT.md ISSUES
+       newdoc mutt/.muttrc muttrc.example
+}