Lines 7-37
Link Here
|
7 |
# |
7 |
# |
8 |
|
8 |
|
9 |
PORTNAME= gonvert |
9 |
PORTNAME= gonvert |
10 |
PORTVERSION= 0.2.01 |
10 |
PORTVERSION= 0.2.05 |
11 |
CATEGORIES= misc python gnome |
11 |
CATEGORIES= misc python gnome |
12 |
MASTER_SITES= http://www.unihedron.com/projects/gonvert/downloads/ |
12 |
MASTER_SITES= http://www.unihedron.com/projects/gonvert/downloads/ |
13 |
|
13 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
14 |
MAINTAINER= ports@FreeBSD.org |
15 |
COMMENT= A conversion utility that allows conversion between many units |
15 |
COMMENT= A conversion utility that allows conversion between many units |
16 |
|
16 |
|
17 |
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2 |
|
|
18 |
|
19 |
USE_X_PREFIX= yes |
17 |
USE_X_PREFIX= yes |
20 |
USE_GNOME= gnomehier |
18 |
USE_GNOME= gnomehier pygtk2 |
21 |
USE_PYTHON= yes |
19 |
USE_PYTHON= yes |
22 |
USE_GMAKE= yes |
20 |
USE_REINPLACE= yes |
23 |
NO_BUILD= yes |
21 |
NO_BUILD= yes |
24 |
|
22 |
|
|
|
23 |
post-patch: |
24 |
@${REINPLACE_CMD} -e \ |
25 |
's|#!/usr/bin/python|#!/usr/bin/env python|g' ${WRKSRC}/gonvert |
26 |
|
25 |
do-install: |
27 |
do-install: |
26 |
${INSTALL_SCRIPT} ${WRKSRC}/gonvert ${PREFIX}/bin |
28 |
${INSTALL_SCRIPT} ${WRKSRC}/gonvert ${PREFIX}/bin |
27 |
${INSTALL_DATA} ${WRKSRC}/gonvert.desktop \ |
29 |
${INSTALL_DATA} ${WRKSRC}/gonvert.desktop \ |
28 |
${PREFIX}/share/gnome/apps/Utilities |
30 |
${PREFIX}/share/gnome/applications |
29 |
${INSTALL_DATA} ${WRKSRC}/pixmaps/gonvert_icon.png \ |
31 |
${INSTALL_DATA} ${WRKSRC}/pixmaps/gonvert.png \ |
30 |
${PREFIX}/share/gnome/pixmaps |
32 |
${PREFIX}/share/gnome/pixmaps |
31 |
@${MKDIR} ${DATADIR} |
33 |
@${MKDIR} ${DATADIR} |
32 |
${INSTALL_DATA} ${WRKSRC}/gonvert.glade ${DATADIR} |
34 |
${INSTALL_DATA} ${WRKSRC}/gonvert.glade ${DATADIR} |
33 |
@${MKDIR} ${DATADIR}/pixmaps |
35 |
@${MKDIR} ${DATADIR}/pixmaps |
34 |
${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${DATADIR}/pixmaps |
36 |
${INSTALL_DATA} ${WRKSRC}/pixmaps/gonvert_picture.png \ |
|
|
37 |
${DATADIR}/pixmaps |
35 |
.if !defined(NOPORTDOCS) |
38 |
.if !defined(NOPORTDOCS) |
36 |
@${MKDIR} ${DOCSDIR} |
39 |
@${MKDIR} ${DOCSDIR} |
37 |
.for file in README CHANGELOG FAQ README THANKS TODO |
40 |
.for file in README CHANGELOG FAQ README THANKS TODO |