1 |
grknight 14/11/29 02:30:24 |
2 |
|
3 |
Added: metadata.xml groonga-4.0.7.ebuild ChangeLog |
4 |
Log: |
5 |
New Package based on older work in the matsuu overlay by MATSUU Takuto |
6 |
|
7 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 67C78E1D) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-text/groonga/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/groonga/metadata.xml?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/groonga/metadata.xml?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: metadata.xml |
16 |
=================================================================== |
17 |
<?xml version="1.0" encoding="UTF-8"?> |
18 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 |
<pkgmetadata> |
20 |
<maintainer> |
21 |
<email>grknight@g.o</email> |
22 |
</maintainer> |
23 |
<use> |
24 |
<flag name="abort">Enable query abortion</flag> |
25 |
<flag name="benchmark">Build benchmark programs</flag> |
26 |
<flag name="dynamic-malloc-change">Allow dynamic memory allocation change for testing</flag> |
27 |
<flag name="exact-alloc-count">Atomic counting for memory alloc count</flag> |
28 |
<flag name="fmalloc">Make memory allocation failed in specified condition for debug</flag> |
29 |
<flag name="futex">Use futex</flag> |
30 |
<flag name="libevent">Enable <pkg>dev-libs/libevent</pkg> used for suggestion</flag> |
31 |
<flag name="mecab">Use <pkg>app-text/mecab</pkg> for morphological analysis</flag> |
32 |
<flag name="msgpack">Enable <pkg>dev-libs/msgpack</pkg> used for suggestion</flag> |
33 |
<flag name="nfkc">Use nfkc based utf8 normalization</flag> |
34 |
<flag name="sphinx">Enable document generation by <pkg>app-misc/sphinx</pkg></flag> |
35 |
<flag name="uyield">Build for detecting race conditions</flag> |
36 |
<flag name="zeromq">Enable <pkg>net-libs/zeromq</pkg> used for suggestion</flag> |
37 |
</use> |
38 |
</pkgmetadata> |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 app-text/groonga/groonga-4.0.7.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/groonga/groonga-4.0.7.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/groonga/groonga-4.0.7.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: groonga-4.0.7.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-text/groonga/groonga-4.0.7.ebuild,v 1.1 2014/11/29 02:30:24 grknight Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
inherit eutils libtool user |
56 |
|
57 |
DESCRIPTION="An Embeddable Fulltext Search Engine" |
58 |
HOMEPAGE="http://groonga.org/" |
59 |
SRC_URI="http://packages.groonga.org/source/${PN}/${P}.tar.gz" |
60 |
|
61 |
LICENSE="LGPL-2.1" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~x86" |
64 |
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" |
65 |
|
66 |
RDEPEND="benchmark? ( >=dev-libs/glib-2.8 ) |
67 |
libedit? ( >=dev-libs/libedit-3 ) |
68 |
libevent? ( dev-libs/libevent ) |
69 |
lzo? ( dev-libs/lzo ) |
70 |
mecab? ( >=app-text/mecab-0.80 ) |
71 |
msgpack? ( dev-libs/msgpack ) |
72 |
ruby? ( dev-lang/ruby ) |
73 |
sphinx? ( >=dev-python/sphinx-1.0.1 ) |
74 |
zeromq? ( net-libs/zeromq ) |
75 |
zlib? ( sys-libs/zlib )" |
76 |
DEPEND="${RDEPEND} |
77 |
virtual/pkgconfig |
78 |
sphinx? ( dev-python/sphinx )" |
79 |
|
80 |
REQUIRED_USE=" abort? ( dynamic-malloc-change ) fmalloc? ( dynamic-malloc-change ) sphinx? ( doc )" |
81 |
|
82 |
pkg_setup() { |
83 |
enewgroup groonga |
84 |
enewuser groonga -1 -1 -1 groonga |
85 |
} |
86 |
|
87 |
src_prepare() { |
88 |
elibtoolize |
89 |
} |
90 |
|
91 |
src_configure() { |
92 |
# httpd is a bundled copy of nginx; disabled for security reasons |
93 |
# prce only is used with httpd |
94 |
# kytea and libstemmer are not available in portage |
95 |
econf \ |
96 |
--disable-groonga-httpd \ |
97 |
--without-pcre \ |
98 |
--without-kytea \ |
99 |
--without-libstemmer \ |
100 |
--with-log-path="${EROOT}var/log/${PN}.log" \ |
101 |
--docdir="${EROOT}usr/share/doc/${P}" \ |
102 |
$(use_enable abort) \ |
103 |
$(use_enable benchmark) \ |
104 |
$(use_enable debug memory-debug) \ |
105 |
$(use_enable doc document) \ |
106 |
$(use_enable dynamic-malloc-change) \ |
107 |
$(use_enable exact-alloc-count) \ |
108 |
$(use_enable fmalloc) \ |
109 |
$(use_enable futex) \ |
110 |
$(use_enable libedit) \ |
111 |
$(use_with libevent) \ |
112 |
$(use_with lzo) \ |
113 |
$(use_with mecab) \ |
114 |
$(use_with msgpack message-pack) \ |
115 |
$(use_enable nfkc) \ |
116 |
$(use_with ruby) \ |
117 |
$(use_with sphinx sphinx-build) \ |
118 |
$(use_enable static-libs static) \ |
119 |
$(use_enable uyield) \ |
120 |
$(use_enable zeromq) \ |
121 |
$(use_with zlib) |
122 |
} |
123 |
|
124 |
src_install() { |
125 |
default |
126 |
|
127 |
prune_libtool_files |
128 |
|
129 |
newinitd "${FILESDIR}/${PN}.initd" ${PN} |
130 |
newconfd "${FILESDIR}/${PN}.confd" ${PN} |
131 |
|
132 |
keepdir /var/{log,spool}/${PN} |
133 |
fowners groonga:groonga /var/{log,spool}/${PN} |
134 |
|
135 |
dodoc README.md |
136 |
|
137 |
use examples || rm -r "${D}usr/share/${PN}" || die |
138 |
# Extra init script |
139 |
rm -r "${D}usr/sbin/groonga-httpd-restart" || die |
140 |
} |
141 |
|
142 |
|
143 |
|
144 |
1.1 app-text/groonga/ChangeLog |
145 |
|
146 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/groonga/ChangeLog?rev=1.1&view=markup |
147 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/groonga/ChangeLog?rev=1.1&content-type=text/plain |
148 |
|
149 |
Index: ChangeLog |
150 |
=================================================================== |
151 |
# ChangeLog for app-text/groonga |
152 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
153 |
# $Header: /var/cvsroot/gentoo-x86/app-text/groonga/ChangeLog,v 1.1 2014/11/29 02:30:24 grknight Exp $ |
154 |
|
155 |
*groonga-4.0.7 (29 Nov 2014) |
156 |
|
157 |
29 Nov 2014; Brian Evans <grknight@g.o> +files/groonga.confd, |
158 |
+files/groonga.initd, +groonga-4.0.7.ebuild, +metadata.xml: |
159 |
New Package based on older work in the matsuu overlay by MATSUU Takuto |