mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
7f037e912f
- no PORTREVISION bump is needed, because it already had run/build depend - trim Makefile header - limit python version to 2.x only - move pkg-plist contents into Makefile:PLIST_FILES PR: 173174 Submitted by: rm (myself) Approved by: brooks (maintainer, by mail) Feature safe: yes
54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
# Created by: Brooks Davis <brooks@freebsd.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ${PYDISTUTILS_PKGNAME:S;^Trac;;S;Plugin$;;:L}
|
|
PORTVERSION= 0.1
|
|
PORTREVISION= 6
|
|
CATEGORIES= www math python
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= brooks
|
|
PKGNAMEPREFIX= trac-
|
|
|
|
MAINTAINER= brooks@FreeBSD.org
|
|
COMMENT= Support for LaTeX math formulas in wiki pages
|
|
|
|
RUN_DEPENDS+= tracd:${PORTSDIR}/www/trac \
|
|
latex:${PORTSDIR}/print/teTeX-base
|
|
|
|
SUB_FILES= pkg-message
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
USE_PYTHON= -2.7
|
|
USE_PYDISTUTILS= easy_install
|
|
PYDISTUTILS_PKGNAME= TracMath
|
|
PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
|
|
|
|
post-install:
|
|
${CAT} ${PKGMESSAGE}
|
|
|
|
# Maintainter targets below this point
|
|
|
|
# Retrieve the latest version from SVN and package in a tarball.
|
|
.if defined(BOOTSTRAP)
|
|
FETCH_DEPENDS+= svn:${PORTSDIR}/devel/subversion
|
|
do-fetch:
|
|
${MKDIR} ${WRKDIR}
|
|
cd ${WRKDIR} && \
|
|
svn export http://trac-hacks.org/svn/tracmathplugin/ \
|
|
${DISTNAME}
|
|
cd ${WRKDIR} && tar cvf ${DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME}
|
|
.endif
|
|
|
|
# Create a pkg-plist after the package is installed.
|
|
EGGDIR= ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG}
|
|
PLIST_EGGDIR= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
|
|
build-plist:
|
|
${FIND} ${EGGDIR} -type f | \
|
|
${SED} -e 's|${EGGDIR}|${PLIST_EGGDIR}|' | \
|
|
${SORT} > pkg-plist
|
|
${FIND} ${EGGDIR} -type d | \
|
|
${SED} -e 's|${EGGDIR}|@dirrm ${PLIST_EGGDIR}|' | \
|
|
${SORT} -r >> pkg-plist
|
|
|
|
.include <bsd.port.mk>
|