Lines 7-34
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= xdg-menu |
8 |
PORTNAME= xdg-menu |
9 |
PORTVERSION= 1.5 |
9 |
PORTVERSION= 1.5 |
10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 2 |
11 |
CATEGORIES= misc |
11 |
CATEGORIES= misc |
12 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} |
12 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} \ |
13 |
DISTNAME= XDG-Menu-${DISTVERSION} |
13 |
SF/nemysisfreebsdp/:icons |
14 |
EXTRACT_SUFX= .tgz |
14 |
DISTFILES= XDG-Menu-${DISTVERSION}.tgz \ |
|
|
15 |
XDG-Menu.png:icons |
16 |
EXTRACT_ONLY= XDG-Menu-${DISTVERSION}.tgz |
15 |
|
17 |
|
16 |
MAINTAINER= nemysis@gmx.ch |
18 |
MAINTAINER= nemysis@gmx.ch |
17 |
COMMENT= A ROX panel applet that displays an applications menu button |
19 |
COMMENT= ROX panel applet that displays an applications menu button |
18 |
|
20 |
|
19 |
LICENSE= GPLv2 |
21 |
LICENSE= GPLv2 |
20 |
|
22 |
|
21 |
RUN_DEPENDS= ${LOCALBASE}/bin/rox:${PORTSDIR}/x11-fm/rox-filer \ |
23 |
RUN_DEPENDS= ${LOCALBASE}/bin/rox:${PORTSDIR}/x11-fm/rox-filer \ |
22 |
${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg \ |
24 |
${PYTHON_PKGNAMEPREFIX}xdg>=0:${PORTSDIR}/devel/py-xdg \ |
23 |
${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus |
25 |
${PYTHON_PKGNAMEPREFIX}dbus>=0:${PORTSDIR}/devel/py-dbus |
24 |
|
26 |
|
25 |
WRKSRC= ${WRKDIR}/XDG-Menu |
27 |
WRKSRC= ${WRKDIR}/XDG-Menu |
26 |
DATADIR= ${PREFIX}/apps/XDG-Menu |
28 |
DATADIR= ${PREFIX}/apps/XDG-Menu |
27 |
|
29 |
|
28 |
FETCH_ARGS?= -Fpr |
|
|
29 |
USE_PYTHON= yes |
30 |
USE_PYTHON= yes |
30 |
ALL_TARGET= |
31 |
|
31 |
NO_BUILD= yes |
32 |
PLIST_FILES= bin/${PORTNAME} \ |
|
|
33 |
share/pixmaps/XDG-Menu.png \ |
34 |
apps/XDG-Menu/.DirIcon |
35 |
|
36 |
PORTDATA= * |
37 |
PORTDOCS= * |
32 |
|
38 |
|
33 |
OPTIONS_DEFINE= ROX |
39 |
OPTIONS_DEFINE= ROX |
34 |
ROX_DESC= Enable ROX panel applet support |
40 |
ROX_DESC= Enable ROX panel applet support |
Lines 46-57
Link Here
|
46 |
@${FIND} ${WRKSRC} -name "*.bak" -delete |
52 |
@${FIND} ${WRKSRC} -name "*.bak" -delete |
47 |
.endif |
53 |
.endif |
48 |
|
54 |
|
|
|
55 |
do-build: |
56 |
@${PYTHON_CMD} -m compileall ${WRKSRC} |
57 |
@${PYTHON_CMD} -O -m compileall ${WRKSRC} |
58 |
|
49 |
do-install: |
59 |
do-install: |
50 |
# Scripts |
60 |
# Scripts |
51 |
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin |
61 |
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin |
52 |
|
62 |
|
53 |
# Executable and Data |
63 |
# Executable and Data |
54 |
${MKDIR} ${DATADIR} |
64 |
${MKDIR} ${DATADIR} |
55 |
@cd ${WRKSRC} && ${FIND} . | ${CPIO} -pdmu ${DATADIR} |
65 |
@(cd ${WRKSRC} && ${CP} -r Messages .DirIcon AppInfo.xml AppRun AppletRun \ |
|
|
66 |
Options.xml Messages python *.py *.pyc *.pyo ${DATADIR}) |
67 |
|
68 |
# |
69 |
${INSTALL_DATA} ${DISTDIR}/XDG-Menu.png ${PREFIX}/share/pixmaps |
70 |
|
71 |
# Documentation |
72 |
.if ${PORT_OPTIONS:MDOCS} |
73 |
@${MKDIR} ${DOCSDIR} |
74 |
. for f in ${PORTDOCS} |
75 |
${INSTALL_DATA} ${WRKSRC}/Help/${f} ${DOCSDIR} |
76 |
. endfor |
77 |
.endif |
56 |
|
78 |
|
57 |
.include <bsd.port.mk> |
79 |
.include <bsd.port.mk> |