summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2006-07-27 13:14:12 +0000
committerAlastair Tse <liquidx@gentoo.org>2006-07-27 13:14:12 +0000
commitdc6ac3661f58f600bf238eb0769f8f88f140b73d (patch)
tree9f16f0529b45a026a7ab25cb5871d80f88105907 /dev-python
parentadding ubuntu gtk engine and ubuntu-artwork. (diff)
downloadliquidx-dc6ac3661f58f600bf238eb0769f8f88f140b73d.tar.gz
liquidx-dc6ac3661f58f600bf238eb0769f8f88f140b73d.tar.bz2
liquidx-dc6ac3661f58f600bf238eb0769f8f88f140b73d.zip
adding pylucene to the overlay for testing
svn path=/; revision=34
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pylucene/Manifest20
-rw-r--r--dev-python/pylucene/bug_814160
-rw-r--r--dev-python/pylucene/files/digest-pylucene-2.0.0-r13
-rw-r--r--dev-python/pylucene/files/pylucene-2.0-nostrip.patch12
-rw-r--r--dev-python/pylucene/files/pylucene-2.0-perms.patch17
-rw-r--r--dev-python/pylucene/pylucene-2.0.0-r1.ebuild68
6 files changed, 120 insertions, 0 deletions
diff --git a/dev-python/pylucene/Manifest b/dev-python/pylucene/Manifest
new file mode 100644
index 0000000..6d11091
--- /dev/null
+++ b/dev-python/pylucene/Manifest
@@ -0,0 +1,20 @@
+AUX pylucene-2.0-nostrip.patch 330 RMD160 27538e90ff94c4c19c3253a71158f35a0d37c875 SHA1 b9bd6a2c30bc898634c84aa7dca3c9c4fd7adc95 SHA256 6f2d5ca7e7661c1018f35de3c28bd1a41059df645f17739a0a17abab305ec66a
+MD5 565f343876b05dd63b37a4b76469a2a7 files/pylucene-2.0-nostrip.patch 330
+RMD160 27538e90ff94c4c19c3253a71158f35a0d37c875 files/pylucene-2.0-nostrip.patch 330
+SHA256 6f2d5ca7e7661c1018f35de3c28bd1a41059df645f17739a0a17abab305ec66a files/pylucene-2.0-nostrip.patch 330
+AUX pylucene-2.0-perms.patch 717 RMD160 214964f931c0f146c53c1617d14572ceed4f3560 SHA1 7f0277508d5bda9a0d6e302480fa2f0e93287a35 SHA256 475bf0cfd68f0b84f3457e4710afd3690b9b18b2326c476d0d31a002c60f7fb3
+MD5 e525550b51dd39452176d041a90617c1 files/pylucene-2.0-perms.patch 717
+RMD160 214964f931c0f146c53c1617d14572ceed4f3560 files/pylucene-2.0-perms.patch 717
+SHA256 475bf0cfd68f0b84f3457e4710afd3690b9b18b2326c476d0d31a002c60f7fb3 files/pylucene-2.0-perms.patch 717
+DIST PyLucene-src-2.0.0-1.tar.gz 4152627 RMD160 9d529f850a4994239d8dd8cf37c567578422a50b SHA1 a345fb937ab2797b60f1f7cd908e2d925c5dd5a5 SHA256 19afb8662274886b09a3f74f205b635e578693014b10286db02e86a244d5652d
+EBUILD pylucene-2.0.0-r1.ebuild 1547 RMD160 06bcd66daf7c0ee5e2f8b08ce1f871752611953c SHA1 20f41cc5393fa992346fde7fff0cce0c21faa524 SHA256 90ca3a32fdd563cb3dfb02a42a74409dedd3a1a61a55d88da3a300ccb14e0f78
+MD5 d1be59217efdb8aa6073199d8ad796e1 pylucene-2.0.0-r1.ebuild 1547
+RMD160 06bcd66daf7c0ee5e2f8b08ce1f871752611953c pylucene-2.0.0-r1.ebuild 1547
+SHA256 90ca3a32fdd563cb3dfb02a42a74409dedd3a1a61a55d88da3a300ccb14e0f78 pylucene-2.0.0-r1.ebuild 1547
+MISC bug_81416 0 RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+MD5 d41d8cd98f00b204e9800998ecf8427e bug_81416 0
+RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 bug_81416 0
+SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 bug_81416 0
+MD5 5096bd16909bcad0c920e360b467767f files/digest-pylucene-2.0.0-r1 265
+RMD160 cd0adf666e2f95652ed3b010ece59125d7272635 files/digest-pylucene-2.0.0-r1 265
+SHA256 82ea8040978f46abfa11aacf3e2b03a4a0e47ed2812c04b3ff5cd528f2084600 files/digest-pylucene-2.0.0-r1 265
diff --git a/dev-python/pylucene/bug_81416 b/dev-python/pylucene/bug_81416
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/dev-python/pylucene/bug_81416
diff --git a/dev-python/pylucene/files/digest-pylucene-2.0.0-r1 b/dev-python/pylucene/files/digest-pylucene-2.0.0-r1
new file mode 100644
index 0000000..0111b61
--- /dev/null
+++ b/dev-python/pylucene/files/digest-pylucene-2.0.0-r1
@@ -0,0 +1,3 @@
+MD5 f50fc8ffce9383037a703a8d6fbeb850 PyLucene-src-2.0.0-1.tar.gz 4152627
+RMD160 9d529f850a4994239d8dd8cf37c567578422a50b PyLucene-src-2.0.0-1.tar.gz 4152627
+SHA256 19afb8662274886b09a3f74f205b635e578693014b10286db02e86a244d5652d PyLucene-src-2.0.0-1.tar.gz 4152627
diff --git a/dev-python/pylucene/files/pylucene-2.0-nostrip.patch b/dev-python/pylucene/files/pylucene-2.0-nostrip.patch
new file mode 100644
index 0000000..1869b9a
--- /dev/null
+++ b/dev-python/pylucene/files/pylucene-2.0-nostrip.patch
@@ -0,0 +1,12 @@
+--- PyLucene-src-2.0.0-1.orig/Makefile 2006-06-26 12:47:33.000000000 +0200
++++ PyLucene-src-2.0.0-1/Makefile 2006-07-05 02:04:05.000000000 +0200
+@@ -703,9 +703,6 @@
+ else
+ $(CXX) -shared -o $@ $(LDFLAGS) $(JAVA_OBJS) $(CPP_OBJS) -L$(GCJ_LIBDIR) -lgcj
+ endif
+-ifneq ($(DEBUG),1)
+- $(STRIP) $@
+-endif
+ else
+
+ ifeq ($(OS),FreeBSD)
diff --git a/dev-python/pylucene/files/pylucene-2.0-perms.patch b/dev-python/pylucene/files/pylucene-2.0-perms.patch
new file mode 100644
index 0000000..c02bd5f
--- /dev/null
+++ b/dev-python/pylucene/files/pylucene-2.0-perms.patch
@@ -0,0 +1,17 @@
+--- PyLucene-src-2.0.0-1.orig/Makefile 2006-06-26 12:47:33.000000000 +0200
++++ PyLucene-src-2.0.0-1/Makefile 2006-07-05 01:26:52.000000000 +0200
+@@ -730,11 +730,11 @@
+
+ install:: all
+ mkdir -p $(PYTHON_SITE)
+- install PyLucene.py $(PYTHON_SITE)
++ install -m 644 PyLucene.py $(PYTHON_SITE)
+ install $(PYLUCENE_LIB) $(PYTHON_SITE)
+ mkdir -p $(PYTHON_SITE)/security
+- install $(GCJ_LIBDIR)/security/classpath.security $(PYTHON_SITE)/security
+- install $(GCJ_LIBDIR)/security/libgcj.security $(PYTHON_SITE)/security
++ install -m 644 $(GCJ_LIBDIR)/security/classpath.security $(PYTHON_SITE)/security
++ install -m 644 $(GCJ_LIBDIR)/security/libgcj.security $(PYTHON_SITE)/security
+
+ ifneq ($(LIB_INSTALL),)
+ install::
diff --git a/dev-python/pylucene/pylucene-2.0.0-r1.ebuild b/dev-python/pylucene/pylucene-2.0.0-r1.ebuild
new file mode 100644
index 0000000..ebf47b6
--- /dev/null
+++ b/dev-python/pylucene/pylucene-2.0.0-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+inherit eutils python
+
+MY_P="${P/pylucene/PyLucene-src}-1"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Python bindings od Lucene search engine"
+HOMEPAGE="http://pylucene.osafoundation.org/"
+SRC_URI="http://downloads.osafoundation.org/PyLucene/src/${MY_P}.tar.gz"
+RESTRICT="nomirror test"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="virtual/python
+ >=sys-devel/gcc-3.4
+ || ( app-admin/eselect-compiler sys-devel/gcc-config )"
+RDEPEND=""
+
+python_version
+
+pkg_setup() {
+ built_with_use sys-devel/gcc gcj || die "PyLucene requires gcj compiler"
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/pylucene-2.0-nostrip.patch
+ epatch ${FILESDIR}/pylucene-2.0-perms.patch
+}
+
+src_compile() {
+ make PYTHON_VER=${PYVER} \
+ PREFIX=/usr PREFIX_PYTHON=/usr \
+ GCJ_HOME=/usr GCJ_LIBDIR=/usr/lib GCJ_STATIC=0 \
+ CC=${CC-gcc} CXX=${CXX-g++} JCC=gcj JCCH=gcjh JAR=gcj-jar \
+ all || die
+}
+
+src_install() {
+ if [ -f /usr/bin/gcc-config ] ; then
+ GCC_LDPATH=$(gcc-config -L | sed 's#:.*$##')
+ else
+ GCC_LDPATH=`eselect compiler getval LDPATH`
+ fi
+
+ dodoc CHANGES CREDITS LICENSE README
+
+ dodir /usr/lib/python${PYVER}/site-packages
+ emake GCJ_LIBDIR=${GCC_LDPATH} PYTHON_VER=${PYVER} PREFIX_PYTHON=${D}/usr \
+ install || die
+}
+
+pkg_postinst() {
+ python_version
+ python_mod_optimize /usr/lib/python${PYVER}/site-packages
+}
+
+pkg_postrm() {
+ python_version
+ python_mod_cleanup /usr/lib/python${PYVER}/site-packages
+}