mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
4a4ec28d37
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a replacement for :U and :L (which has been marked as deprecated) bmake which is the default on FreeBSD 10+ only support by default :tu/:tl a hack has been added at the time to support :U and :L to ease migration. This hack is now not necessary anymore Note that this makes the ports tree incompatible with make(1) from FreeBSD 8.3 or earlier With hat: portmgr
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= ${PYDISTUTILS_PKGNAME:S;^Trac;;S;Plugin$;;:tl}
|
|
PORTVERSION= 0.1
|
|
PORTREVISION= 6
|
|
CATEGORIES= www math python
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= brooks
|
|
PKGNAMEPREFIX= trac-
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Support for LaTeX math formulas in wiki pages
|
|
|
|
RUN_DEPENDS+= tracd:${PORTSDIR}/www/trac
|
|
|
|
USE_TEX= latex
|
|
SUB_FILES= pkg-message
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
USE_PYTHON= 2
|
|
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>
|