# New ports collection makefile for: yolk # Date created: 2007-03-11 # Whom: Nicola Vitale # # $FreeBSD$ # PORTNAME= yolk PORTVERSION= 0.1.0 CATEGORIES= misc python MASTER_SITES= ${MASTER_SITE_CHEESESHOP} \ http://nivi.interfree.it/distfiles/${PORTNAME}/ MASTER_SITE_SUBDIR= source/y/${PORTNAME} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= nivit@FreeBSD.org COMMENT= A Python tool for listing packages installed by setuptools BUILD_DEPENDS+= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools RUN_DEPENDS+= ${BUILD_DEPENDS} OPTIONS= PYPI_RSS "Enable fetching PyPI RSS feed" On OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options USE_PYTHON= yes USE_PYDISTUTILS= yes .if !defined (NO_INSTALL_MAN) MAN1= ${PORTNAME}.1 .endif PYDISTUTILS_BUILD_TARGET= bdist_egg PYDISTUTILS_INSTALL_TARGET= easy_install PYDISTUTILS_INSTALLARGS= -N -s ${PREFIX}/bin -S ${PYTHON_SITELIBDIR} dist/${PYYOLK_EGG} PLIST_SUB= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \ PYYOLK_EGG=${PYYOLK_EGG} PYYOLK_EGG_VER=${PYYOLK_EGG_VER} \ PORTEXAMPLES=${PORTEXAMPLES} EASY_INSTALL_CMD= easy_install-${PYTHON_VER} PYYOLK_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg PYYOLK_EGG_VER= "${PORTNAME}==${PORTVERSION}" .include post-install: .if !defined (NO_INSTALL_MAN) @${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.1 ${MANPREFIX}/man/man1/${PORTNAME}.1 .endif .if !defined (NOPORTEXAMPLES) @${MKDIR} ${EXAMPLESDIR} @cd ${WRKSRC}/examples && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} ";" @cd ${WRKSRC}/examples && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} ";" .endif .if defined (WITH_PYPI_RSS) RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/elementtree/__init__.py:${PORTSDIR}/devel/py-elementtree .endif .if !defined (NOPORTEXAMPLES) EXAMPLESDIR= ${TARGETDIR}/share/examples/py-${PORTNAME} .endif .include