1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/devel/gaphor/Makefile
Marcus von Appen 89e07f4a18 - Convert ports of devel/ to USES=python
Approved by:	portmgr (implicit)
2014-10-20 16:04:12 +00:00

69 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
USES= python
USE_PYTHON= distutils autoplist
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>