summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2017-12-10 21:12:00 +0900
committerAkinori Hattori <hattya@gentoo.org>2017-12-10 21:40:16 +0900
commit9d7fdec908dafa3fcfcf39fb60fa7e4eb335fff9 (patch)
treeabe3266b0e408a37e091fa65bd3e96b2e2758fa1 /app-text/namazu
parentapp-editors/xemacs: Use system malloc and -no-pie (diff)
downloadgentoo-9d7fdec908dafa3fcfcf39fb60fa7e4eb335fff9.tar.gz
gentoo-9d7fdec908dafa3fcfcf39fb60fa7e4eb335fff9.tar.bz2
gentoo-9d7fdec908dafa3fcfcf39fb60fa7e4eb335fff9.zip
app-text/namazu: update patches
Package-Manager: Portage-2.3.13, Repoman-2.3.4
Diffstat (limited to 'app-text/namazu')
-rw-r--r--app-text/namazu/files/namazu-2.0.19-gentoo.patch29
-rw-r--r--app-text/namazu/files/namazu-2.0.21-memmove.patch (renamed from app-text/namazu/files/namazu-2.0.21-search.patch)4
-rw-r--r--app-text/namazu/files/namazu-gentoo.patch54
-rw-r--r--app-text/namazu/metadata.xml2
-rw-r--r--app-text/namazu/namazu-2.0.21.ebuild36
-rw-r--r--app-text/namazu/namazu-2.0.22_p1.ebuild14
6 files changed, 84 insertions, 55 deletions
diff --git a/app-text/namazu/files/namazu-2.0.19-gentoo.patch b/app-text/namazu/files/namazu-2.0.19-gentoo.patch
deleted file mode 100644
index 6d7f649507bd..000000000000
--- a/app-text/namazu/files/namazu-2.0.19-gentoo.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-diff -Naur namazu-2.0.19.orig/filter/Makefile.am namazu-2.0.19/filter/Makefile.am
---- namazu-2.0.19.orig/filter/Makefile.am 2008-05-03 02:07:03.000000000 +0900
-+++ namazu-2.0.19/filter/Makefile.am 2009-03-13 01:04:20.000000000 +0900
-@@ -51,9 +51,3 @@
-
- ETAGS_ARGS = $(filter_DATA) --lang=perl
- TAGS_DEPENDENCIES = $(filter_DATA)
--
--# To remove Windows specific files installed by Namazu 2.0 and/or 2.0.1
--# and old gfilter.pl (Namazu 2.0.7 or earlier).
--install-data-local:
-- rm -f $(filterdir)/ole*.pl
-- rm -f $(filterdir)/gfilter.pl
-diff -Naur namazu-2.0.19.orig/filter/Makefile.in namazu-2.0.19/filter/Makefile.in
---- namazu-2.0.19.orig/filter/Makefile.in 2009-03-12 23:24:48.000000000 +0900
-+++ namazu-2.0.19/filter/Makefile.in 2009-03-13 01:05:08.000000000 +0900
-@@ -455,12 +455,6 @@
- uninstall uninstall-am uninstall-filterDATA uninstall-info-am \
- uninstall-info-recursive uninstall-recursive
-
--
--# To remove Windows specific files installed by Namazu 2.0 and/or 2.0.1
--# and old gfilter.pl (Namazu 2.0.7 or earlier).
--install-data-local:
-- rm -f $(filterdir)/ole*.pl
-- rm -f $(filterdir)/gfilter.pl
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT:
diff --git a/app-text/namazu/files/namazu-2.0.21-search.patch b/app-text/namazu/files/namazu-2.0.21-memmove.patch
index 6a8e10e8e1a0..30ad490e44fa 100644
--- a/app-text/namazu/files/namazu-2.0.21-search.patch
+++ b/app-text/namazu/files/namazu-2.0.21-memmove.patch
@@ -1,5 +1,5 @@
---- a/nmz/search.c 2011-08-05 09:26:47.000000000 +0900
-+++ b/nmz/search.c 2011-08-05 09:32:25.000000000 +0900
+--- a/nmz/search.c
++++ b/nmz/search.c
@@ -572,7 +572,7 @@
{
if (*expr == '*' && expr[strlen(expr) - 1] != '*') {
diff --git a/app-text/namazu/files/namazu-gentoo.patch b/app-text/namazu/files/namazu-gentoo.patch
new file mode 100644
index 000000000000..027804e3fa7a
--- /dev/null
+++ b/app-text/namazu/files/namazu-gentoo.patch
@@ -0,0 +1,54 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -19,9 +19,9 @@
+
+ bin_SCRIPTS = nmz-config
+
+-etcdir = $(pkgdatadir)/etc
+-etc_DATA = AUTHORS ChangeLog ChangeLog.1 CREDITS COPYING INSTALL \
+- INSTALL-ja README README-es README-ja NEWS THANKS TODO \
++etcdir = @docdir@
++etc_DATA = AUTHORS ChangeLog ChangeLog.1 CREDITS \
++ README README-es README-ja NEWS THANKS TODO \
+ HACKING HACKING-ja
+
+ EXTRA_DIST = $(etc_DATA) maintMakefile namazu.spec namazu.spec.in \
+--- a/doc/Makefile.am
++++ b/doc/Makefile.am
+@@ -2,7 +2,7 @@
+ AUTOMAKE_OPTIONS = 1.4 no-dependencies
+ SUBDIRS = en ja
+
+-cssdir = $(pkgdatadir)/doc
++cssdir = @htmldir@
+
+ css_DATA = namazu.css
+ EXTRA_DIST = $(css_DATA)
+--- a/doc/en/Makefile.am
++++ b/doc/en/Makefile.am
+@@ -1,4 +1,4 @@
+-htmldir = $(pkgdatadir)/doc/en
++htmldir = @htmldir@/en
+
+ html_DATA = manual.html nmz.html tutorial.html tips.html
+ EXTRA_DIST = $(html_DATA)
+--- a/doc/ja/Makefile.am
++++ b/doc/ja/Makefile.am
+@@ -1,4 +1,4 @@
+-htmldir = $(pkgdatadir)/doc/ja
++htmldir = @htmldir@/ja
+
+ html_DATA = manual.html nmz.html tips.html tutorial.html
+ EXTRA_DIST = $(html_DATA)
+--- a/filter/Makefile.am
++++ b/filter/Makefile.am
+@@ -51,9 +51,3 @@
+
+ ETAGS_ARGS = $(filter_DATA) --lang=perl
+ TAGS_DEPENDENCIES = $(filter_DATA)
+-
+-# To remove Windows specific files installed by Namazu 2.0 and/or 2.0.1
+-# and old gfilter.pl (Namazu 2.0.7 or earlier).
+-install-data-local:
+- rm -f $(filterdir)/ole*.pl
+- rm -f $(filterdir)/gfilter.pl
diff --git a/app-text/namazu/metadata.xml b/app-text/namazu/metadata.xml
index d84b2e08fb4d..3a5b4fa8acc4 100644
--- a/app-text/namazu/metadata.xml
+++ b/app-text/namazu/metadata.xml
@@ -4,7 +4,7 @@
<maintainer type="person">
<email>hattya@gentoo.org</email>
</maintainer>
-<maintainer type="project">
+ <maintainer type="project">
<email>cjk@gentoo.org</email>
<name>Cjk</name>
</maintainer>
diff --git a/app-text/namazu/namazu-2.0.21.ebuild b/app-text/namazu/namazu-2.0.21.ebuild
index 4609a1dfba2b..ac2d382288d5 100644
--- a/app-text/namazu/namazu-2.0.21.ebuild
+++ b/app-text/namazu/namazu-2.0.21.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
-inherit eutils elisp-common
+inherit autotools eutils elisp-common
DESCRIPTION="Namazu is a full-text search engine"
HOMEPAGE="http://www.namazu.org/"
@@ -34,20 +34,28 @@ DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )"
src_prepare() {
- epatch "${FILESDIR}/${PN}-2.0.19-gentoo.patch"
- epatch "${FILESDIR}/${PN}-2.0.21-search.patch"
+ epatch "${FILESDIR}"/${PN}-gentoo.patch
+ epatch "${FILESDIR}"/${P}-memmove.patch
+
+ mv configure.{in,ac}
+ mv tk${PN}/configure.{in,ac}
+ eautoreconf
}
src_configure() {
- local myconf
- use tk && myconf="--with-namazu=/usr/bin/namazu
- --with-mknmz=/usr/bin/mknmz
- --with-indexdir=/var/lib/namazu/index"
-
- econf \
- $(use_enable nls) \
- $(use_enable tk tknamazu) \
- ${myconf}
+ local myconf=(
+ $(use_enable nls)
+ $(use_enable tk tknamazu)
+ --docdir="${EPREFIX}"/usr/share/doc/${PF}
+ --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
+ )
+ use tk && myconf+=(
+ --with-namazu=/usr/bin/namazu
+ --with-mknmz=/usr/bin/mknmz
+ --with-indexdir=/var/lib/namazu/index
+ )
+
+ econf "${myconf[@]}"
}
src_compile() {
@@ -61,8 +69,6 @@ src_compile() {
src_install () {
emake DESTDIR="${D}" install
- dodoc AUTHORS CREDITS ChangeLog* HACKING* NEWS README* THANKS TODO etc/*.png
- dohtml -r doc/*
if use emacs; then
elisp-install ${PN} lisp/gnus-nmz-1.el* lisp/namazu.el*
diff --git a/app-text/namazu/namazu-2.0.22_p1.ebuild b/app-text/namazu/namazu-2.0.22_p1.ebuild
index 213abbf2f808..ed4b7d27b3f0 100644
--- a/app-text/namazu/namazu-2.0.22_p1.ebuild
+++ b/app-text/namazu/namazu-2.0.22_p1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
+AUTOTOOLS_AUTORECONF="1"
inherit autotools-utils eutils elisp-common
DESCRIPTION="Namazu is a full-text search engine"
@@ -34,15 +35,14 @@ DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )"
S="${WORKDIR}"/${P/_p/pre}
-PATCHES=(
- "${FILESDIR}/${PN}-2.0.19-gentoo.patch"
-)
-DOCS=(AUTHORS CREDITS NEWS THANKS TODO)
+PATCHES=( "${FILESDIR}"/${PN}-gentoo.patch )
src_configure() {
local myeconfargs=(
$(use_enable nls)
$(use_enable tk tknamazu)
+ --docdir="${EPREFIX}"/usr/share/doc/${PF}
+ --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
)
use tk && myeconfargs+=(
@@ -64,9 +64,7 @@ src_compile() {
src_install () {
autotools-utils_src_install
- dodoc ChangeLog* HACKING* README* etc/*.png
- dohtml -r doc/*
- rm -r "${ED}"/usr/share/namazu/doc || die
+
if use emacs; then
elisp-install ${PN} lisp/gnus-nmz-1.el* lisp/namazu.el*
elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el