1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/devel/gaphor/Makefile
Marcus von Appen 7e30d004b7 - Remove easy_install dependency
- Convert to PYDISTUTILS_AUTOPLIST
- Bump PORTREVISION to enforce a cleanup for the easy_install references

With hat:	python@
Approved by:	portmgr (implicit)
2014-06-22 09:12:30 +00:00

70 lines
2.3 KiB
Makefile

# Created by: rehsack@liwing.de
# $FreeBSD$
PORTNAME= gaphor
PORTVERSION= 0.17.2
PORTREVISION= 1
CATEGORIES= devel gnome
MASTER_SITES= CHEESESHOP/source/e/etk.docking:docking \
CHEESESHOP/source/g/gaphas:gaphas \
CHEESESHOP/source/s/simplegeneric:sgeneric \
CHEESESHOP
DISTFILES= ${DOCKING_DISTNAME}${EXTRACT_SUFX}:docking \
${GAPHAS_DISTNAME}${EXTRACT_SUFX}:gaphas \
${SGENERIC_DISTNAME}.zip:sgeneric \
${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= UML modeling environment written in Python
LICENSE= GPLv2
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0.10.4:${PORTSDIR}/devel/py-nose
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}decorator>0:${PORTSDIR}/devel/py-decorator \
${PYTHON_PKGNAMEPREFIX}zope.component>3.4.0:${PORTSDIR}/devel/py-zope.component
USE_GNOME= pygtk2
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
INSTALLS_ICONS= yes
PLIST_SUB= DOCKING_EGG="${DOCKING_EGG}" GAPHAS_EGG="${GAPHAS_EGG}"
DOCKING_DISTNAME= etk.docking-0.2
GAPHAS_DISTNAME= gaphas-0.7.2
SGENERIC_DISTNAME= simplegeneric-0.8.1
HICOLORDIR= ${STAGEDIR}${PREFIX}/share/icons/hicolor
post-patch:
@${REINPLACE_CMD} -e \
's|\(Icon=gaphor\).*|\1|' ${WRKSRC}/gaphor.desktop
post-build:
@${PYTHON_CMD} -m compileall ${WRKDIR}/${DOCKING_DISTNAME}/lib/etk
@${PYTHON_CMD} -O -m compileall ${WRKDIR}/${DOCKING_DISTNAME}/lib/etk
@${PYTHON_CMD} -m compileall ${WRKDIR}/${GAPHAS_DISTNAME}/gaphas
@${PYTHON_CMD} -O -m compileall ${WRKDIR}/${GAPHAS_DISTNAME}/gaphas
@${PYTHON_CMD} -m compileall ${WRKDIR}/${SGENERIC_DISTNAME}
@${PYTHON_CMD} -O -m compileall ${WRKDIR}/${SGENERIC_DISTNAME}
post-install:
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/etk \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/gaphas \
${STAGEDIR}${DESKTOPDIR}
(cd ${WRKDIR}/${DOCKING_DISTNAME}/lib && ${COPYTREE_SHARE} etk \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/)
(cd ${WRKDIR}/${GAPHAS_DISTNAME} && ${COPYTREE_SHARE} gaphas \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/)
(cd ${WRKDIR}/${SGENERIC_DISTNAME} && ${INSTALL_DATA} \
simplegeneric.py* ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR})
(cd ${WRKSRC} && ${INSTALL_DATA} gaphor.desktop \
${STAGEDIR}${DESKTOPDIR})
.for i in 24 48 96 256
@${MKDIR} ${HICOLORDIR}/${i}x${i}/apps
(cd ${WRKSRC}/gaphor/ui/pixmaps && ${INSTALL_DATA} \
gaphor-${i}x${i}.png ${HICOLORDIR}/${i}x${i}/apps/gaphor.png)
.endfor
.include <bsd.port.mk>