1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/textproc/py-lucene/Makefile
2010-03-31 09:30:59 +00:00

54 lines
1.6 KiB
Makefile

#
# Ports collection makefile for: py-lucene
# Date created: Nov 2, 2006
# Whom: Frank J. Laszlo <laszlof@vonostingroup.com>
#
# $FreeBSD$
#
PORTNAME= PyLucene
PORTVERSION= 3.0.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.4+
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}
.if ${PYTHON_REL} > 250
@${REINPLACE_CMD} -e 's,-m jcc,-m jcc.__main__,' ${WRKSRC}/Makefile
.endif
#regression-test:
# cd ${WRKSRC}; env ${MAKE_ENV} ${GMAKE} test
.include <bsd.port.post.mk>