diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/namazu |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/namazu')
-rw-r--r-- | app-text/namazu/Manifest | 10 | ||||
-rw-r--r-- | app-text/namazu/files/50namazu-gentoo.el | 5 | ||||
-rw-r--r-- | app-text/namazu/files/namazu-2.0.19-gentoo.patch | 29 | ||||
-rw-r--r-- | app-text/namazu/files/namazu-2.0.21-search.patch | 56 | ||||
-rw-r--r-- | app-text/namazu/metadata.xml | 11 | ||||
-rw-r--r-- | app-text/namazu/namazu-2.0.21.ebuild | 82 | ||||
-rw-r--r-- | app-text/namazu/namazu-2.0.22_p1.ebuild | 85 |
7 files changed, 278 insertions, 0 deletions
diff --git a/app-text/namazu/Manifest b/app-text/namazu/Manifest new file mode 100644 index 000000000000..d6869d03dd7d --- /dev/null +++ b/app-text/namazu/Manifest @@ -0,0 +1,10 @@ +AUX 50namazu-gentoo.el 108 SHA256 42a3f8c20434d06bb5f9f8b50d94754a12494932f61f07e9fdeeaaeca68e398b SHA512 aec608edb1a428de7bf0365b0ed181096b742e3eaf49c1f68d7f24d0843fc130304ef110d2060a531c9594bc7c8f6f9fd5dd5b0d51a31eff6c497bc01ad6c1f9 WHIRLPOOL 9e9e27d805fa59a2c2d2af49e2c4d8fd084c5fe861620bd62a274d463f6466c4d8be2b32a455009e7e797f0725ab7da91dcfc370f0ad72653d6e87aee8aea1f4 +AUX namazu-2.0.19-gentoo.patch 1258 SHA256 89218d988e64446cf65d4ff73f53a45543cc45d83dce9065ef4d44a2dc5844dd SHA512 bf6c7e3b91114b2be955440436a921a2428a5b833a89d64940ce1a8038060419fd9714421e0f1c4d0ba0180e4f1b4d2236b22469089622864db65ed2e7db4d0b WHIRLPOOL 3d450f8aa7ffe4958a894eee3f97cca08c150dc531cf43c6ee646c79df24efc6fb6eb8ff8506643a12c52ea79b0bda974fefcc2f3b2aed98cf748d7aafeca2f2 +AUX namazu-2.0.21-search.patch 2122 SHA256 5d5c75102e3e0dc3cb35eb91a44d7ceabc699a7ae809812e841cf64b82e13db9 SHA512 b69d347ba10d88d99f335bfa2dca61d52c284ef2f5375f43f0c7fe16fc8d39cb4b8e3ad57a1bfbc07d463284ec53dbdc805233e0c6f441b451ae50dba1e960c8 WHIRLPOOL 5df0f138b66e1f264c0e129528df491fb9bd88f5f2a6eafb349014f15a72230bdef9aac8ff5895c901ccd1f17e144354f8f7aeb24a83c802e4786d068f17ea85 +DIST namazu-2.0.21.tar.gz 1394048 SHA256 5c18afb679db07084a05aca8dffcfb5329173d99db8d07ff6d90b57c333c71f7 SHA512 c0ce1b8c8b8ce30ee7d28cfed790a9c8585d1b468eefe2ba4ac70976e09329ae04a3a3bbf0b86b9673cfdf206f2b103896daca2f053062f451884fa659b31ea6 WHIRLPOOL 61794e4c1644303c90c074c4f383a74dd8db0550c8108120bc1ee9dd47d9b1e3aeef6484008c6ee729eb7711c4da57bb0d50f16ab0353886296e70d4f9daa9db +DIST namazu-2.0.22pre1.tar.gz 1394798 SHA256 58937c8dd62934c4b6596670361e53b20505415afa02bf1491b5ae0176d4afbb SHA512 de982a45a7e8d11f901e0e5db3ba8047d065569c56de676d6b876747e8bf5c358f0d3037a6539421cbff2c0f0cbc889d379b33500e308d038e663d62cd4b5005 WHIRLPOOL 86723855e372cfd4f7e035ca609c19114ee8531d3202a34382718cf4a037db8c883e3cf4a94616afc95e380f66720131c08f577b94975ce13fb079e9cb36a595 +EBUILD namazu-2.0.21.ebuild 1550 SHA256 8b80434f1b196a259257a6fbbcf228168e4ddbfa2374cfce8599f289b20455fd SHA512 dc909c71022555bb77e4ba1a47baef8c310eb3aa3a43cf395a178ae2652c0c26a1139835469a868594dce8a4c907de234f3f3304a3b3ed234c6b2031293de5b9 WHIRLPOOL eda759bad6ead81b20969e2bd86d90b5e67428fec309445ae73ece2d9fbf53f894adee13fcc733115ec0aae33bcc7a61e1f2f4dd9e9b220ff35ae69347edd35c +EBUILD namazu-2.0.22_p1.ebuild 1607 SHA256 0eedabb0ac007d542b22853c1167e9f739a9d81b38c825ef59d51556ef881f10 SHA512 4da30b1aabb027dda91b95732a1d5ae5457f8b8615a02be26a0e153b89d3e7d3a7927c9df36cc2333b4af9d5042f95ddb52af971310514a3601fb1a0cf7ac3e5 WHIRLPOOL ded90da124d22e1484f1e66dc7d6fe5dca8e1606cef0779bc4a53462a9c84fb693da907ec30e99f102b74cbfe8888adaa37b80774593d4db21e31276d9fb0d35 +MISC ChangeLog 2748 SHA256 7901afe8f2fee04c792899107a36bce46d207d0db81d175a2e74c6b7a0679da0 SHA512 b52b80f9a134e078d369769a5ce52fc9ac93b34c8032e8301560ed714d694e6ad0deb69858600c0239ce3a4af5313831f06dc14278551f88232394d1c8109bcb WHIRLPOOL 47139da8d3210df1d6667ba15457bc9eabe625f2f3248a615e408c81ada476a555241dee53990ca6534dfced89e8499db295d6c9a33de623590f88183faec482 +MISC ChangeLog-2015 5706 SHA256 2a43cce186d5165b37db66638b64fc291b7a5b86c496b8bffc20ea5561ffdf28 SHA512 aa1eaa43eeda63569764bc6f88e3973f100885c12cba72fb3f99e28ea525f32fd74ab156a9104893f3f77d35192a52849a227fa5e31700e6c89a5d9ed60acd87 WHIRLPOOL cc170dd8770951aa1dd774157c0557d7b93bcf344e58c2717ef4270b86dbe796a50bc6e48eda51b200eea2455abf214973ed1eb540560509d2156a093e30b568 +MISC metadata.xml 320 SHA256 9604d5dfbe5c1580a03ae86cb4b7f7993661599e8776b4738856c6c3bfbeeaef SHA512 7fefedc1acd2f81eaf89ea57b6963d1e308be3be6d85dc2c56d52c1c3a4f5ff1531f07db5b560838c51185dc105de1f72dfda565549cbe58c519ba8e6099f478 WHIRLPOOL a8bfd5aa57cdbec194738e7047c926df69e700ff96c64db6fd2905b5bb7c665e502dbfb67509bfd024d3e5f8e378cd7c2b01e59f3b0272eb7aa9037404e25fe9 diff --git a/app-text/namazu/files/50namazu-gentoo.el b/app-text/namazu/files/50namazu-gentoo.el new file mode 100644 index 000000000000..56bbce50af82 --- /dev/null +++ b/app-text/namazu/files/50namazu-gentoo.el @@ -0,0 +1,5 @@ + +;; namazu site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(autoload 'namazu "namazu" nil t) diff --git a/app-text/namazu/files/namazu-2.0.19-gentoo.patch b/app-text/namazu/files/namazu-2.0.19-gentoo.patch new file mode 100644 index 000000000000..6d7f649507bd --- /dev/null +++ b/app-text/namazu/files/namazu-2.0.19-gentoo.patch @@ -0,0 +1,29 @@ +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-search.patch new file mode 100644 index 000000000000..6a8e10e8e1a0 --- /dev/null +++ b/app-text/namazu/files/namazu-2.0.21-search.patch @@ -0,0 +1,56 @@ +--- a/nmz/search.c 2011-08-05 09:26:47.000000000 +0900 ++++ b/nmz/search.c 2011-08-05 09:32:25.000000000 +0900 +@@ -572,7 +572,7 @@ + { + if (*expr == '*' && expr[strlen(expr) - 1] != '*') { + /* If suffix match such as '*bar', enforce it into regex */ +- strcpy(expr, expr + 1); ++ memmove(expr, expr + 1, strlen(expr)); + escape_meta_characters(expr, BUFSIZE * 2); + strncat(expr, "$", BUFSIZE * 2 - strlen(expr) - 1); + expr[BUFSIZE * 2 - 1] = '\0'; +@@ -584,7 +584,7 @@ + expr[BUFSIZE * 2 - 1] = '\0'; + } else if (*expr == '*' && expr[strlen(expr) - 1] == '*') { + /* If internal match such as '*foo*', enforce it into regex */ +- strcpy(expr, expr + 1); ++ memmove(expr, expr + 1, strlen(expr)); + expr[strlen(expr) - 1] = '\0'; + escape_meta_characters(expr, BUFSIZE * 2); + } else if (*expr == '/' && expr[strlen(expr) - 1] == '/') { +@@ -592,7 +592,7 @@ + nmz_debug_printf("do REGEX search\n"); + /* Genuine regex */ + /* Remove the both of '/' chars at begging and end of string */ +- strcpy(expr, expr + 1); ++ memmove(expr, expr + 1, strlen(expr)); + expr[strlen(expr) - 1]= '\0'; + } else { + nmz_debug_printf("disabled REGEX search\n"); +@@ -605,7 +605,7 @@ + || (*expr == '{' && expr[strlen(expr) - 1] == '}')) + { + /* Delimiters of field search */ +- strcpy(expr, expr + 1); ++ memmove(expr, expr + 1, strlen(expr)); + expr[strlen(expr) - 1] = '\0'; + } + escape_meta_characters(expr, BUFSIZE * 2); +@@ -695,7 +695,7 @@ + delete_beginning_backslash(char *str) + { + if (*str == '\\') { +- strcpy(str, str + 1); ++ memmove(str, str + 1, strlen(str)); + } + } + +@@ -935,7 +935,7 @@ + if ((strlen(str) >= 3 && (*str == '"' && str[strlen(str) - 1] == '"')) + || (*str == '{' && str[strlen(str) - 1] == '}')) + { +- strcpy(str, str + 1); ++ memmove(str , str + 1, strlen(str)); + str[strlen(str) - 1]= '\0'; + } + } diff --git a/app-text/namazu/metadata.xml b/app-text/namazu/metadata.xml new file mode 100644 index 000000000000..d84b2e08fb4d --- /dev/null +++ b/app-text/namazu/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>hattya@gentoo.org</email> + </maintainer> +<maintainer type="project"> + <email>cjk@gentoo.org</email> + <name>Cjk</name> + </maintainer> +</pkgmetadata> diff --git a/app-text/namazu/namazu-2.0.21.ebuild b/app-text/namazu/namazu-2.0.21.ebuild new file mode 100644 index 000000000000..4609a1dfba2b --- /dev/null +++ b/app-text/namazu/namazu-2.0.21.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils elisp-common + +DESCRIPTION="Namazu is a full-text search engine" +HOMEPAGE="http://www.namazu.org/" +SRC_URI="http://www.namazu.org/stable/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 x86" +IUSE="emacs nls tk l10n_ja" + +RDEPEND=">=dev-perl/File-MMagic-1.20 + emacs? ( virtual/emacs ) + l10n_ja? ( + app-i18n/nkf + || ( + dev-perl/Text-Kakasi + app-i18n/kakasi + app-text/chasen + app-text/mecab + ) + ) + nls? ( virtual/libintl ) + tk? ( + dev-lang/tk:0 + www-client/lynx + )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + epatch "${FILESDIR}/${PN}-2.0.19-gentoo.patch" + epatch "${FILESDIR}/${PN}-2.0.21-search.patch" +} + +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} +} + +src_compile() { + emake + + if use emacs; then + cd lisp + elisp-compile gnus-nmz-1.el namazu.el + fi +} + +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* + elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el + + docinto lisp + dodoc lisp/ChangeLog* + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/app-text/namazu/namazu-2.0.22_p1.ebuild b/app-text/namazu/namazu-2.0.22_p1.ebuild new file mode 100644 index 000000000000..213abbf2f808 --- /dev/null +++ b/app-text/namazu/namazu-2.0.22_p1.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit autotools-utils eutils elisp-common + +DESCRIPTION="Namazu is a full-text search engine" +HOMEPAGE="http://www.namazu.org/" +SRC_URI="http://www.namazu.org/test/${P/_p/pre}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="emacs nls tk l10n_ja" + +RDEPEND=">=dev-perl/File-MMagic-1.20 + emacs? ( virtual/emacs ) + l10n_ja? ( + app-i18n/nkf + || ( + dev-perl/Text-Kakasi + app-i18n/kakasi + app-text/chasen + app-text/mecab + ) + ) + nls? ( virtual/libintl ) + tk? ( + dev-lang/tk:0 + www-client/lynx + )" +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) + +src_configure() { + local myeconfargs=( + $(use_enable nls) + $(use_enable tk tknamazu) + ) + + use tk && myeconfargs+=( + --with-namazu=/usr/bin/namazu + --with-mknmz=/usr/bin/mknmz + --with-indexdir=/var/lib/namazu/index + ) + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + + if use emacs; then + cd lisp + elisp-compile gnus-nmz-1.el namazu.el + fi +} + +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 + + docinto lisp + dodoc lisp/ChangeLog* + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |