app-text/namazu: update patches
authorAkinori Hattori <hattya@gentoo.org>
Sun, 10 Dec 2017 12:12:00 +0000 (21:12 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Sun, 10 Dec 2017 12:40:16 +0000 (21:40 +0900)
Package-Manager: Portage-2.3.13, Repoman-2.3.4

app-text/namazu/files/namazu-2.0.19-gentoo.patch [deleted file]
app-text/namazu/files/namazu-2.0.21-memmove.patch [moved from app-text/namazu/files/namazu-2.0.21-search.patch with 94% similarity]
app-text/namazu/files/namazu-gentoo.patch [new file with mode: 0644]
app-text/namazu/metadata.xml
app-text/namazu/namazu-2.0.21.ebuild
app-text/namazu/namazu-2.0.22_p1.ebuild

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 (file)
index 6d7f649..0000000
+++ /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:
similarity index 94%
rename from app-text/namazu/files/namazu-2.0.21-search.patch
rename to app-text/namazu/files/namazu-2.0.21-memmove.patch
index 6a8e10e8e1a00a8532f5aba756770857ad8778aa..30ad490e44fa76aff94c3965e7b6d9e2a041ee95 100644 (file)
@@ -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 (file)
index 0000000..027804e
--- /dev/null
@@ -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
index d84b2e08fb4d6aa20d34da1e11ad7b3a1d58544a..3a5b4fa8acc416b1375d4f1a6f266f7b7009fdf8 100644 (file)
@@ -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>
index 4609a1dfba2bd87c57adbc523078af707424ad85..ac2d382288d53e261240c025595cea52bf361492 100644 (file)
@@ -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*
index 213abbf2f808cca331ec08dea5add934e8179fd6..ed4b7d27b3f0287fdf8677dadaed2e81b3038796 100644 (file)
@@ -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