Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Sep 2012 21:16:43 +0200
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        jgh@FreeBSD.org
Subject:   ports/171617: [MAINTAINER] misc/xdg-menu: Added Master Site, Pixmaps, PLIST_FILES
Message-ID:  <20120913191646.EA4DA106566B@hub.freebsd.org>
Resent-Message-ID: <201209131920.q8DJK2pG060572@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         171617
>Category:       ports
>Synopsis:       [MAINTAINER] misc/xdg-menu: Added Master Site, Pixmaps, PLIST_FILES
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 13 19:20:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC
>Description:

Makefile changed:

- Added Master Site for Pixmaps
+MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} \
+		SF/nemysisfreebsdp/:icons

- Changed Comment
+COMMENT=	ROX panel applet that displays an applications menu button

- Ajusted Run Depends
RUN_DEPENDS

- Added
PLIST_FILES

- Added
+PORTDATA=	*
+PORTDOCS=	*

- Added
Pixmaps
Documentation

Removed file(s):
- pkg-plist

Generated and tested manually, tested with port test and with RedPorts (all RELEASES, CLANG), sent with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:

portlint -A
WARN: Makefile: [66]: possible direct use of command "python" found. use ${PYTHON_CMD} instead.

WARN: Makefile: [66] because is used

Options.xml Messages python *.py *.pyc *.pyo ${DATADIR})


Build log RedPorts

https://redports.org/buildarchive/20120913160046-90668/

>Fix:

--- xdg-menu-1.5_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/misc/xdg-menu/Makefile ./Makefile
--- /usr/ports/misc/xdg-menu/Makefile	2012-08-23 11:12:26.000000000 +0200
+++ ./Makefile	2012-09-13 21:04:19.000000000 +0200
@@ -7,28 +7,34 @@
 
 PORTNAME=	xdg-menu
 PORTVERSION=	1.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	misc
-MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
-DISTNAME=	XDG-Menu-${DISTVERSION}
-EXTRACT_SUFX=	.tgz
+MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} \
+		SF/nemysisfreebsdp/:icons
+DISTFILES=	XDG-Menu-${DISTVERSION}.tgz \
+		XDG-Menu.png:icons
+EXTRACT_ONLY=	XDG-Menu-${DISTVERSION}.tgz
 
 MAINTAINER=	nemysis@gmx.ch
-COMMENT=	A ROX panel applet that displays an applications menu button
+COMMENT=	ROX panel applet that displays an applications menu button
 
 LICENSE=	GPLv2
 
 RUN_DEPENDS=	${LOCALBASE}/bin/rox:${PORTSDIR}/x11-fm/rox-filer \
-		${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg \
-		${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus
+		${PYTHON_PKGNAMEPREFIX}xdg>=0:${PORTSDIR}/devel/py-xdg \
+		${PYTHON_PKGNAMEPREFIX}dbus>=0:${PORTSDIR}/devel/py-dbus
 
 WRKSRC=		${WRKDIR}/XDG-Menu
 DATADIR=	${PREFIX}/apps/XDG-Menu
 
-FETCH_ARGS?=	-Fpr
 USE_PYTHON=	yes
-ALL_TARGET=
-NO_BUILD=	yes
+
+PLIST_FILES=	bin/${PORTNAME} \
+		share/pixmaps/XDG-Menu.png \
+		apps/XDG-Menu/.DirIcon
+
+PORTDATA=	*
+PORTDOCS=	*
 
 OPTIONS_DEFINE=	ROX
 ROX_DESC=	Enable ROX panel applet support
@@ -46,12 +52,28 @@
 	@${FIND} ${WRKSRC} -name "*.bak" -delete
 .endif
 
+do-build:
+	@${PYTHON_CMD} -m compileall ${WRKSRC}
+	@${PYTHON_CMD} -O -m compileall ${WRKSRC}
+
 do-install:
 # Scripts
 	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
 
 # Executable and Data
 	${MKDIR} ${DATADIR}
-	@cd ${WRKSRC} && ${FIND} . | ${CPIO} -pdmu ${DATADIR}
+	@(cd ${WRKSRC} && ${CP} -r Messages .DirIcon AppInfo.xml AppRun AppletRun \
+	Options.xml Messages python *.py *.pyc *.pyo ${DATADIR})
+
+# 
+	${INSTALL_DATA} ${DISTDIR}/XDG-Menu.png ${PREFIX}/share/pixmaps
+
+# Documentation
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+.  for f in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/Help/${f} ${DOCSDIR}
+.  endfor
+.endif
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/misc/xdg-menu/distinfo ./distinfo
--- /usr/ports/misc/xdg-menu/distinfo	2012-05-18 06:40:24.000000000 +0200
+++ ./distinfo	2012-09-13 17:09:55.000000000 +0200
@@ -1,2 +1,4 @@
 SHA256 (XDG-Menu-1.5.tgz) = 5cd62f3421032c4b619b80fde7e7cdc3230409489762e5c05ffd82d7c9c28478
 SIZE (XDG-Menu-1.5.tgz) = 32377
+SHA256 (XDG-Menu.png) = f6f3be4272ca446c3bdf7895556c879ab7a4eceaf2a985dabaf1ad2126a3a2e4
+SIZE (XDG-Menu.png) = 5974
diff -ruN --exclude=CVS /usr/ports/misc/xdg-menu/pkg-plist ./pkg-plist
--- /usr/ports/misc/xdg-menu/pkg-plist	2012-05-18 06:40:24.000000000 +0200
+++ ./pkg-plist	1970-01-01 01:00:00.000000000 +0100
@@ -1,35 +0,0 @@
-apps/XDG-Menu/.DirIcon
-apps/XDG-Menu/AppInfo.xml
-apps/XDG-Menu/AppRun
-apps/XDG-Menu/AppletRun
-apps/XDG-Menu/Help/COPYING
-apps/XDG-Menu/Help/ChangeLog
-apps/XDG-Menu/Help/README
-apps/XDG-Menu/Help/README.ru
-apps/XDG-Menu/Help/TODO
-apps/XDG-Menu/Makefile
-apps/XDG-Menu/Messages/XDG-Menu.pot
-apps/XDG-Menu/Messages/it.gmo
-apps/XDG-Menu/Messages/it.po
-apps/XDG-Menu/Messages/opts2po.py
-apps/XDG-Menu/Messages/ru.gmo
-apps/XDG-Menu/Messages/ru.po
-apps/XDG-Menu/Messages/uk.gmo
-apps/XDG-Menu/Messages/uk.po
-apps/XDG-Menu/Options.xml
-apps/XDG-Menu/findrox.py
-apps/XDG-Menu/python/config.py
-apps/XDG-Menu/python/ctxmenu.py
-apps/XDG-Menu/python/dndsource.py
-apps/XDG-Menu/python/i18n.py
-apps/XDG-Menu/python/imagemenu.py
-apps/XDG-Menu/python/main.py
-apps/XDG-Menu/python/roxmenu.py
-apps/XDG-Menu/python/xdgmenu.py
-bin/xdg-menu
-@dirrmtry share/applications
-@dirrm apps/XDG-Menu/python
-@dirrm apps/XDG-Menu/Messages
-@dirrm apps/XDG-Menu/Help
-@dirrm apps/XDG-Menu
-@dirrmtry apps
--- xdg-menu-1.5_2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120913191646.EA4DA106566B>