blob: 4cf9b7feb63f9077fc1b2074e6d5a0997f622deb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# 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>
|