summaryrefslogtreecommitdiff
path: root/app-misc/glimpse
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/glimpse
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/glimpse')
-rw-r--r--app-misc/glimpse/Manifest4
-rw-r--r--app-misc/glimpse/files/glimpse-4.18.6-makefile.patch42
-rw-r--r--app-misc/glimpse/glimpse-4.18.6-r1.ebuild60
-rw-r--r--app-misc/glimpse/metadata.xml5
4 files changed, 111 insertions, 0 deletions
diff --git a/app-misc/glimpse/Manifest b/app-misc/glimpse/Manifest
new file mode 100644
index 000000000000..c0a2f380cb0f
--- /dev/null
+++ b/app-misc/glimpse/Manifest
@@ -0,0 +1,4 @@
+AUX glimpse-4.18.6-makefile.patch 1048 BLAKE2B e937f045dec826e5660ba4f38e4f6c9dd05ee4cd71b5b9044d5c9f24c22d5ad91745d526638b2daebf29dc8ae5b0fafe0c30a3f13a46193185805be7e61a730a SHA512 568b0cc6f52d8ce79e5ad552a302a814162072b85f1a3b7bd2b00bf18ae2d7526429f68f6910d9fb91ddcde43387a2778f9f61ed3f86f0fb533b69946cfef0b7
+DIST glimpse-4.18.6.tar.gz 812595 BLAKE2B 427ab2523236d9aa04ad789d001d5234483842f4d8d812a01b7cf2adc9354917da2e95df7b88917d8c0a282c7aab67bfd2cfbb87a6600a31fe6b07b6936137c9 SHA512 884daf2057f46bbe29ad2c3e9000e18a3fcc5101abdcb5193dcf66e5da650e2528a6d2cef05ab4176243f381ba03f533cba989cad329697808d97a61f1b42d3a
+EBUILD glimpse-4.18.6-r1.ebuild 1422 BLAKE2B 67d8b20dfc96a3f2b6b3130175bc91dfebc4b0cdc91f32795c4437f785671aa2f4c5a964e9d1ab2137dca24fe3aa1069c17c1542cdca8e7525080fa43e965d80 SHA512 d8fc26603642c4732b3beedc8c4747d3fce0ebffea62ac59f11c46d8d49cfaf5618d51c3b0cd5234fd0ed822bf2e3d45659f4278b3c014adc25efc01b9e74e72
+MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84
diff --git a/app-misc/glimpse/files/glimpse-4.18.6-makefile.patch b/app-misc/glimpse/files/glimpse-4.18.6-makefile.patch
new file mode 100644
index 000000000000..a6f3b430d62b
--- /dev/null
+++ b/app-misc/glimpse/files/glimpse-4.18.6-makefile.patch
@@ -0,0 +1,42 @@
+--- a/Makefile.in 2006-03-10 20:42:12.000000000 -0500
++++ b/Makefile.in.new 2010-08-12 21:12:41.000000000 -0400
+@@ -52,7 +52,7 @@
+ PROGAGREP = agrep/agrep
+ OPTIMIZEFLAGS = -O2
+ INCLUDEFLAGS = -I$(INDEXDIR) -I$(AGREPDIR) -I$(TEMPLATEDIR)/include
+-CFLAGS = $(INCLUDEFLAGS) $(DEFS)
++CFLAGS = $(INCLUDEFLAGS) $(DEFS) $(OPTIMIZEFLAGS)
+
+ OBJS = get_filename.o \
+ get_index.o \
+@@ -78,7 +78,7 @@
+ $(INDEXDIR)/memlook.c \
+ $(INDEXDIR)/io.c
+
+-all: build-sub @TARGET@
++all: build-sub
+ Sall: $(PROG) $(PROGSERVER) $(PROGINDEX)
+ agrep: $(PROGAGREP)
+ NOTSall: $(NOTSPROG) $(NOTSPROGSERVER)
+@@ -87,6 +87,7 @@
+ for d in $(SUBDIRS) ; do \
+ ( cd $$d; $(MAKE) ); \
+ done
++ $(MAKE) @TARGET@
+
+ # Check target
+
+@@ -105,11 +106,11 @@
+
+ install-man:
+ for d in $(MANUAL) ; do \
+- $(INSTALL_MAN) $$d $(mandir) ; \
++ $(INSTALL_MAN) $$d $(mandir)/man1/ ; \
+ done
+
+ installdirs: mkinstalldirs
+- $(srcdir)/mkinstalldirs $(bindir) $(mandir)
++ $(srcdir)/mkinstalldirs $(bindir) $(mandir)/man1/
+
+ clean:
+ for d in $(SUBDIRS); do \
diff --git a/app-misc/glimpse/glimpse-4.18.6-r1.ebuild b/app-misc/glimpse/glimpse-4.18.6-r1.ebuild
new file mode 100644
index 000000000000..0db485045de1
--- /dev/null
+++ b/app-misc/glimpse/glimpse-4.18.6-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic
+
+DESCRIPTION="A index/query system to search a large set of files quickly"
+HOMEPAGE="http://webglimpse.net/"
+SRC_URI="http://webglimpse.net/trial/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="alpha amd64 ia64 ~mips ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="static"
+
+RDEPEND="!dev-libs/tre
+ !dev-ruby/amatch
+ !app-text/agrep"
+
+PATCHES=( "${FILESDIR}/${PN}-4.18.6-makefile.patch" )
+
+src_prepare() {
+ sed -i \
+ -e "s:CC=.*:CC=$(tc-getCC):" \
+ -e 's:-O3 -fomit-frame-pointer:$(OPTIMIZEFLAGS):' \
+ dynfilters/Makefile.in \
+ || die "removing -O3 failed"
+ sed -i \
+ -e '/^CFLAGS/s:$: $(OPTIMIZEFLAGS):' \
+ {agrep,compress,index}/Makefile.in \
+ libtemplate/{template,util}/Makefile.in \
+ || die "inserting OPTIMIZEFLAGS failed"
+ sed -i \
+ -e 's:$(mandir):&/man1/:' \
+ agrep/Makefile.in \
+ || die "adding man1 to man install dir failed"
+
+ sed -i \
+ -e '/^LDFLAGS/d' \
+ {agrep,compress,index}/Makefile.in \
+ || die "LDFLAGS sed failed"
+
+ default
+}
+
+src_configure() {
+ use static && append-ldflags -static
+ default
+}
+
+src_compile() {
+ # The OPTIMIZEFLAGS variable is our own, patched in...
+ emake OPTIMIZEFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ # The build system is buggy; we get sandbox violations without this.
+ emake prefix="${ED}/usr" install
+}
diff --git a/app-misc/glimpse/metadata.xml b/app-misc/glimpse/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/app-misc/glimpse/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>