blob: 82e9d62784a9d566f0c15ecf2fc8346ff2bbc03c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#
# Ports collection makefile for: py-lucene
# Date created: Nov 2, 2006
# Whom: Frank J. Laszlo <laszlof@vonostingroup.com>
#
# $FreeBSD$
#
PORTNAME= PyLucene
PORTVERSION= 3.0.3
PORTREVISION= 1
CATEGORIES= textproc devel python java
MASTER_SITES= ${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR= lucene/pylucene
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pylucene-${PORTVERSION}${PATCHSET}-src
MAINTAINER= clsung@FreeBSD.org
COMMENT= A GCJ-compiled version of Java Lucene integrated with Python
BUILD_DEPENDS= ant:${PORTSDIR}/devel/apache-ant \
${PYTHON_PKGNAMEPREFIX}jcc>0:${PORTSDIR}/devel/py-jcc \
${NONEXISTENT}:${PORTSDIR}/textproc/lucene:extract
USE_PYTHON= 2.5+
USE_GCC= 4.2+
USE_JAVA= yes
JAVA_VERSION= 1.4+
USE_GMAKE= yes
PATCHSET= -1
LUCENE_VER= 2.4.1
EGG_INFO= lucene-${PYDISTUTILS_PKGVERSION:C/[^A-Za-z0-9.]+/_/g}-${PYTHON_VERSION:S/thon//}.egg-info
#EGG_INFO= lucene-${LUCENE_VER}-${PYTHON_VERSION:S/thon//}.egg-info
WRKSRC= ${WRKDIR}/pylucene-${PORTVERSION}${PATCHSET}
PLIST_SUB= EGG_INFO=${EGG_INFO}
MAKE_ENV+= LD_LIBRARY_PATH="${JAVA_HOME}/jre/lib/${ARCH}:${JAVA_HOME}/jre/lib/${ARCH}/server"
MAKE_ARGS+= PREFIX=${PREFIX} PREFIX_PYTHON=${LOCALBASE} PYTHON=${PYTHON_CMD} \
LDFLAGS+=-L${LOCALBASE}/lib PYTHON_INC=${PYTHON_INCLUDEDIR} \
PYTHON_SITE=${PYTHON_SITELIBDIR}
.include <bsd.port.pre.mk>
pre-build:
${CP} -R ${WRKDIR}/../../lucene/work/lucene-${LUCENE_VER} ${WRKSRC}/lucene-java-${LUCENE_VER}
@${REINPLACE_CMD} -e 's,-m jcc,-m jcc.__main__,' ${WRKSRC}/Makefile
#regression-test:
# cd ${WRKSRC}; env ${MAKE_ENV} ${GMAKE} test
.include <bsd.port.post.mk>
|