# New ports collection makefile for: trac-wysiwyg # Date created: Jan 11 2008 # Whom: Greg Larkin # # $FreeBSD$ # PORTNAME= wysiwyg DISTVERSION= 0.4.${SVN_REV} CATEGORIES= www devel python MASTER_SITES= http://www.sourcehosting.net/freebsd/distfiles/ \ LOCAL/brooks PKGNAMEPREFIX= trac- DIST_SUBDIR= trac MAINTAINER= glarkin@FreeBSD.org COMMENT= WYSIWYG editor for Trac wiki RUN_DEPENDS+= tracd:${PORTSDIR}/www/trac BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools USE_BZIP2= yes USE_PYTHON= yes NO_BUILD= yes USE_PYDISTUTILS=yes PYDISTUTILS_PKGNAME= TracWysiwyg PLIST_SUB+= EGGVERSION=${EGGVERSION} PYTHONVERSION=${_PYTHON_VERSION} EGGVERSION= 0.12.${PORTVERSION:R} PLIST_FILES+= %%PYTHON_SITELIBDIR%%/TracWysiwyg-%%EGGVERSION%%-py%%PYTHONVERSION%%.egg PYDISTUTILS_NOEGGINFO= yes .include .if !defined(SVN_REV) .if defined(BOOTSTRAP) SVN_URL= http://trac-hacks.org/svn/tracwysiwygplugin/0.12/ LANG= "C" SVN_REV!= svn info ${SVN_URL} | ${GREP} Revision | cut -d' ' -f2 .else .include "Makefile.svn_rev" .endif .endif .if defined(BOOTSTRAP) || defined(SVN_FETCH) FETCH_DEPENDS+= svn:${PORTSDIR}/devel/subversion do-fetch: ${MKDIR} ${WRKDIR} svn export -r ${SVN_REV} ${SVN_URL} ${WRKSRC} cd ${WRKDIR}; tar cvfy ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}.tar.bz2 ${DISTNAME} echo "SVN_REV= ${SVN_REV}" > ${MASTERDIR}/Makefile.svn_rev .endif post-install: @${CAT} ${PKGMESSAGE} .include