New Package based on older work in the matsuu overlay by MATSUU Takuto
authorBrian Evans <grknight@gentoo.org>
Sat, 29 Nov 2014 02:30:33 +0000 (02:30 +0000)
committerBrian Evans <grknight@gentoo.org>
Sat, 29 Nov 2014 02:30:33 +0000 (02:30 +0000)
Package-Manager: portage-2.2.14/cvs/Linux x86_64
Manifest-Sign-Key: 0x67C78E1D

app-text/groonga/ChangeLog [new file with mode: 0644]
app-text/groonga/Manifest [new file with mode: 0644]
app-text/groonga/files/groonga.confd [new file with mode: 0644]
app-text/groonga/files/groonga.initd [new file with mode: 0644]
app-text/groonga/groonga-4.0.7.ebuild [new file with mode: 0644]
app-text/groonga/metadata.xml [new file with mode: 0644]

diff --git a/app-text/groonga/ChangeLog b/app-text/groonga/ChangeLog
new file mode 100644 (file)
index 0000000..4f0cf5b
--- /dev/null
@@ -0,0 +1,9 @@
+# ChangeLog for app-text/groonga
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/groonga/ChangeLog,v 1.1 2014/11/29 02:30:24 grknight Exp $
+
+*groonga-4.0.7 (29 Nov 2014)
+
+  29 Nov 2014; Brian Evans <grknight@gentoo.org> +files/groonga.confd,
+  +files/groonga.initd, +groonga-4.0.7.ebuild, +metadata.xml:
+  New Package based on older work in the matsuu overlay by MATSUU Takuto
diff --git a/app-text/groonga/Manifest b/app-text/groonga/Manifest
new file mode 100644 (file)
index 0000000..f2935b5
--- /dev/null
@@ -0,0 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX groonga.confd 409 SHA256 ffa9f777d5a854a1c5953cc027cd2e3e59ccf383f9190133faaa3cd5d6b15179 SHA512 a15e490fa74f5095cff1eddf50aae40d1b186c243ca5407731a01afb2074727d1088dad37cb130697dd7667bd326f936567d06a1e51957a16f3c4db3e046bf36 WHIRLPOOL f25cffe104f89296e8d51d6cd9c5371251b9b14dbb230d73e6da40064fe3449a4c86d6790683b0dedd37a47b6540a08586bfc461408e41ba0c0fb7c52631a298
+AUX groonga.initd 578 SHA256 088c9b8713fd75822dd38a25997fb3447f90347ebfe0491aae66812a5b62afc1 SHA512 9727f5b954214a65bb58e3f066db562ca767a7f2d35a876eda7c49b39d6601ec49807f8f697d4ec2ce14f73823d492c82b198d2f5feb777ff95d00f1a264faef WHIRLPOOL d58659a792ab4ac3b007e962ddbae6aaf0e12f0de02089e40d1bf0d025bec158c2d629d8e9595046f7cbd781894582ff4886130e6d1daec6665ea9315ca72c23
+DIST groonga-4.0.7.tar.gz 10990151 SHA256 ec1d19b05c7a592a316e845ff4c5549c6236cc7ea83423c0fc7831c16161bbbf SHA512 942c28205ffb2c7d3ba767ff68b342ef5b7b9fef72131782635e86682c82a4ea3dad9d5263a42563ded22db573015c9859e49dc20c812f7a6534478b22d8b9a8 WHIRLPOOL 2473c14bcc50c87bfb925e73cc3c4cd2c02915ac498a5e40aeee312ac9873857406e38e8146fabe722250f2d258b6444813d4c47726c16ce4cfceea35f207d3a
+EBUILD groonga-4.0.7.ebuild 2515 SHA256 e2985f9c8e22637f3b5f472d08b2a89630fc63ec09729286e83c74ef40b441cc SHA512 d7cdb573471b7be19814f4d994be1b0d0c29364e1cf35889346116f29ab14cfd8770aa9da57202c82939a7741120617cffe67452d8453479b4f1e4998bf81958 WHIRLPOOL bbbe28a04ba113946844ef5c267306dd73a99edcfcaa007ff3169934bf5cfa004e9350eac2efac25c798286d1d2758dda893dbaf732d287173ec54ebea881af3
+MISC ChangeLog 443 SHA256 cf9933ef787dbe29a0e62df71f8db8b8e1ebbb175f9d10f176b92c2c08a66cf0 SHA512 499276aacc7909f0c5e8c78fcbb8c11517f4d25d127a9e6ef06007371eec5895fd5096cb5a5d467ffe8102ffcdfccc1abed67fb17ad6e00f174973ec01cb4e99 WHIRLPOOL d6dac3eff481d50abcc3327b8d617777adfcc7de5324d6a9dd115fb6048437fbecf6e61aad28a89d8ac308201019f7bdbc88d67af0abda264466c31f259ebea0
+MISC metadata.xml 1192 SHA256 843308dfff5dd504955601f21930f93b516072a3cb7feda6472d3a70395e57c4 SHA512 91ddf13f0338aa1c9415ca03a162bf413973fdd32a06f26b226ac3712e5aef6e54650622dc3d1d07855fa72c5c84417a21affff65eabb45a82478b71329db1bf WHIRLPOOL f660f6759ea44b2ca7f8bcb8933e6285e516470b8ce454b178762cdbd6900b7f58652f4079678a42918e127cc52bfce6ddce4f9570436afa2ef5f95a76160c30
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQEcBAEBCAAGBQJUeS/FAAoJEE4V4vFnx44dGCIH/jgu6F8q3igz8A0S9TM9O/nI
+5iY6E6uOxnxBFWbBKDQbfEPZaTj0uk5XfNFbegk/8q5ZF3hHSHhG44ZHgEvX/3tQ
+iUxwNLtFleyGjBwFQcLqH27rSKgmPzHjed7KT+TZRXv6gi42IwvGpLwSTPh8XfgU
+Qb+loUvwkjeaUS6iE8LUkj3Brf1Hn1o3Fm1Hcc9Te5gVEJJlGrvVEw/n3TksDF4K
+jvMtVJUdjJtIr740XjnFNQB43boad5Rr55wncVbFT1RcMSi7qYnWok0yRpkNGClw
+wXPUhI8CQhr9hqxbmE9occ8sjYrLGh6uxrqE369hOeQ1OeudsDrggfCR4hSfC5c=
+=rQuc
+-----END PGP SIGNATURE-----
diff --git a/app-text/groonga/files/groonga.confd b/app-text/groonga/files/groonga.confd
new file mode 100644 (file)
index 0000000..42c4b6b
--- /dev/null
@@ -0,0 +1,12 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/groonga/files/groonga.confd,v 1.1 2014/11/29 02:30:24 grknight Exp $
+
+# Default
+#USER=groonga
+#GROUP=groonga
+#ADDRESS=127.0.0.1
+#DATABASE=/var/lib/groonga/db/db
+#LOG_PATH=/var/log/groonga/groonga.log
+#QUERY_LOG_PATH=/var/log/groonga/query.log
+#PROTOCOL=gqtp
diff --git a/app-text/groonga/files/groonga.initd b/app-text/groonga/files/groonga.initd
new file mode 100644 (file)
index 0000000..9253ba3
--- /dev/null
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/groonga/files/groonga.initd,v 1.1 2014/11/29 02:30:24 grknight Exp $
+
+depend() {
+       use net
+}
+
+start() {
+       ebegin "Starting groonga"
+       checkpath -d /run/groonga -o ${USER:-groonga}:${GROUP:-groonnga}
+       start-stop-daemon --start --quiet --exec /usr/sbin/groonga -- ${GROONGA_OPTS}
+       eend $?
+}
+
+stop() {
+       ebegin "Stopping groonga"
+       start-stop-daemon --stop --quiet --pidfile /var/spool/groonga/groonga.pid
+       eend $?
+}
diff --git a/app-text/groonga/groonga-4.0.7.ebuild b/app-text/groonga/groonga-4.0.7.ebuild
new file mode 100644 (file)
index 0000000..df3b15e
--- /dev/null
@@ -0,0 +1,91 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/groonga/groonga-4.0.7.ebuild,v 1.1 2014/11/29 02:30:24 grknight Exp $
+
+EAPI=5
+inherit eutils libtool user
+
+DESCRIPTION="An Embeddable Fulltext Search Engine"
+HOMEPAGE="http://groonga.org/"
+SRC_URI="http://packages.groonga.org/source/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="abort benchmark debug doc dynamic-malloc-change +exact-alloc-count examples fmalloc futex libedit libevent lzo mecab msgpack +nfkc ruby sphinx static-libs uyield zeromq zlib"
+
+RDEPEND="benchmark? ( >=dev-libs/glib-2.8 )
+       libedit? ( >=dev-libs/libedit-3 )
+       libevent? ( dev-libs/libevent )
+       lzo? ( dev-libs/lzo )
+       mecab? ( >=app-text/mecab-0.80 )
+       msgpack? ( dev-libs/msgpack )
+       ruby? ( dev-lang/ruby )
+       sphinx? ( >=dev-python/sphinx-1.0.1 )
+       zeromq? ( net-libs/zeromq )
+       zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+       sphinx? ( dev-python/sphinx )"
+
+REQUIRED_USE=" abort? ( dynamic-malloc-change ) fmalloc? ( dynamic-malloc-change ) sphinx? ( doc )"
+
+pkg_setup() {
+       enewgroup groonga
+       enewuser groonga -1 -1 -1 groonga
+}
+
+src_prepare() {
+       elibtoolize
+}
+
+src_configure() {
+       # httpd is a bundled copy of nginx; disabled for security reasons
+       # prce only is used with httpd
+       # kytea and libstemmer are not available in portage
+       econf \
+               --disable-groonga-httpd \
+               --without-pcre \
+               --without-kytea \
+               --without-libstemmer \
+               --with-log-path="${EROOT}var/log/${PN}.log" \
+               --docdir="${EROOT}usr/share/doc/${P}" \
+               $(use_enable abort) \
+               $(use_enable benchmark) \
+               $(use_enable debug memory-debug) \
+               $(use_enable doc document) \
+               $(use_enable dynamic-malloc-change) \
+               $(use_enable exact-alloc-count) \
+               $(use_enable fmalloc) \
+               $(use_enable futex) \
+               $(use_enable libedit) \
+               $(use_with libevent) \
+               $(use_with lzo) \
+               $(use_with mecab) \
+               $(use_with msgpack message-pack) \
+               $(use_enable nfkc) \
+               $(use_with ruby) \
+               $(use_with sphinx sphinx-build) \
+               $(use_enable static-libs static) \
+               $(use_enable uyield) \
+               $(use_enable zeromq) \
+               $(use_with zlib)
+}
+
+src_install() {
+       default
+
+       prune_libtool_files
+
+       newinitd "${FILESDIR}/${PN}.initd" ${PN}
+       newconfd "${FILESDIR}/${PN}.confd" ${PN}
+
+       keepdir /var/{log,spool}/${PN}
+       fowners groonga:groonga /var/{log,spool}/${PN}
+
+       dodoc README.md
+
+       use examples || rm -r "${D}usr/share/${PN}" || die
+       # Extra init script
+       rm -r "${D}usr/sbin/groonga-httpd-restart" || die
+}
diff --git a/app-text/groonga/metadata.xml b/app-text/groonga/metadata.xml
new file mode 100644 (file)
index 0000000..606f8d9
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>grknight@gentoo.org</email>
+</maintainer>
+<use>
+   <flag name="abort">Enable query abortion</flag>
+   <flag name="benchmark">Build benchmark programs</flag>
+   <flag name="dynamic-malloc-change">Allow dynamic memory allocation change for testing</flag>
+   <flag name="exact-alloc-count">Atomic counting for memory alloc count</flag>
+   <flag name="fmalloc">Make memory allocation failed in specified condition for debug</flag>
+   <flag name="futex">Use futex</flag>
+   <flag name="libevent">Enable <pkg>dev-libs/libevent</pkg> used for suggestion</flag>
+   <flag name="mecab">Use <pkg>app-text/mecab</pkg> for morphological analysis</flag>
+   <flag name="msgpack">Enable <pkg>dev-libs/msgpack</pkg> used for suggestion</flag>
+   <flag name="nfkc">Use nfkc based utf8 normalization</flag>
+   <flag name="sphinx">Enable document generation by <pkg>app-misc/sphinx</pkg></flag>
+   <flag name="uyield">Build for detecting race conditions</flag>
+   <flag name="zeromq">Enable <pkg>net-libs/zeromq</pkg> used for suggestion</flag>
+</use>
+</pkgmetadata>
+