Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2013 21:12:55 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r321425 - head/audio/lxmusic
Message-ID:  <201306202112.r5KLCt3p079796@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Thu Jun 20 21:12:54 2013
New Revision: 321425
URL: http://svnweb.freebsd.org/changeset/ports/321425

Log:
  audio/lxmusic: minor fixes
  
  - Add LICENSE (MIT GPLv2)
  - Use desktop-file-utils
  - Add NLS and DOCS options
  - Add Created by in Makefile header
  
  PR:		ports/179775
  Submitted by:	nemysis <nemysis@gmx.ch>
  Approved by:	maintainer

Modified:
  head/audio/lxmusic/Makefile
  head/audio/lxmusic/pkg-plist

Modified: head/audio/lxmusic/Makefile
==============================================================================
--- head/audio/lxmusic/Makefile	Thu Jun 20 20:40:29 2013	(r321424)
+++ head/audio/lxmusic/Makefile	Thu Jun 20 21:12:54 2013	(r321425)
@@ -1,3 +1,4 @@
+# Created by: Eric Turgeon <ericturgeon.bsd at gmail.com>
 # $FreeBSD$
 
 PORTNAME=	lxmusic
@@ -8,18 +9,46 @@ MASTER_SITES=	SF/ghostbsdproject/package
 MAINTAINER=	ericturgeon@ghostbsd.org
 COMMENT=	LXDE music player based on xmms2
 
+LICENSE=	MIT GPLv2
+LICENSE_COMB=	dual
+
 LIB_DEPENDS=	xmmsclient:${PORTSDIR}/audio/xmms2 \
 		notify:${PORTSDIR}/devel/libnotify
 
+USES=		desktop-file-utils
 USE_GNOME=	gtk20
-USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
-USES=		gettext
+USE_GMAKE=	yes
 INSTALLS_ICONS=	yes
+
 CPPFLAGS+=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
 LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
 
+PORTDOCS=	AUTHORS README
+
+OPTIONS_DEFINE=	DOCS NLS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USES+=		gettext
+PLIST_SUB+=	NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+=	NLS="@comment "
+.endif
+
+post-patch:
+.if ! ${PORT_OPTIONS:MNLS}
+	@${REINPLACE_CMD} -e 's|data po|data|' \
+		${WRKSRC}/Makefile.in
+
+.endif
+
 post-install:
-	@-${LOCALBASE}/bin/update-desktop-database > /dev/null
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
 
 .include <bsd.port.mk>

Modified: head/audio/lxmusic/pkg-plist
==============================================================================
--- head/audio/lxmusic/pkg-plist	Thu Jun 20 20:40:29 2013	(r321424)
+++ head/audio/lxmusic/pkg-plist	Thu Jun 20 21:12:54 2013	(r321425)
@@ -1,64 +1,62 @@
 bin/lxmusic
 share/applications/lxmusic.desktop
-share/locale/af/LC_MESSAGES/lxmusic.mo
-share/locale/ar/LC_MESSAGES/lxmusic.mo
-share/locale/bg/LC_MESSAGES/lxmusic.mo
-share/locale/bn_IN/LC_MESSAGES/lxmusic.mo
-share/locale/ca/LC_MESSAGES/lxmusic.mo
-share/locale/cs/LC_MESSAGES/lxmusic.mo
-share/locale/da/LC_MESSAGES/lxmusic.mo
-share/locale/de/LC_MESSAGES/lxmusic.mo
-share/locale/el/LC_MESSAGES/lxmusic.mo
-share/locale/es/LC_MESSAGES/lxmusic.mo
-share/locale/es_VE/LC_MESSAGES/lxmusic.mo
-share/locale/et/LC_MESSAGES/lxmusic.mo
-share/locale/eu/LC_MESSAGES/lxmusic.mo
-share/locale/fa/LC_MESSAGES/lxmusic.mo
-share/locale/fi/LC_MESSAGES/lxmusic.mo
-share/locale/fr/LC_MESSAGES/lxmusic.mo
-share/locale/frp/LC_MESSAGES/lxmusic.mo
-share/locale/gl/LC_MESSAGES/lxmusic.mo
-share/locale/he/LC_MESSAGES/lxmusic.mo
-share/locale/hr/LC_MESSAGES/lxmusic.mo
-share/locale/hu/LC_MESSAGES/lxmusic.mo
-share/locale/id/LC_MESSAGES/lxmusic.mo
-share/locale/it/LC_MESSAGES/lxmusic.mo
-share/locale/ja/LC_MESSAGES/lxmusic.mo
-share/locale/ko/LC_MESSAGES/lxmusic.mo
-share/locale/lt/LC_MESSAGES/lxmusic.mo
-share/locale/ml/LC_MESSAGES/lxmusic.mo
-share/locale/ms/LC_MESSAGES/lxmusic.mo
-share/locale/nb/LC_MESSAGES/lxmusic.mo
-share/locale/nl/LC_MESSAGES/lxmusic.mo
-share/locale/nn/LC_MESSAGES/lxmusic.mo
-share/locale/pl/LC_MESSAGES/lxmusic.mo
-share/locale/ps/LC_MESSAGES/lxmusic.mo
-share/locale/pt/LC_MESSAGES/lxmusic.mo
-share/locale/pt_BR/LC_MESSAGES/lxmusic.mo
-share/locale/ru/LC_MESSAGES/lxmusic.mo
-share/locale/sk/LC_MESSAGES/lxmusic.mo
-share/locale/sl/LC_MESSAGES/lxmusic.mo
-share/locale/sr/LC_MESSAGES/lxmusic.mo
-share/locale/sv/LC_MESSAGES/lxmusic.mo
-share/locale/tr/LC_MESSAGES/lxmusic.mo
-share/locale/uk/LC_MESSAGES/lxmusic.mo
-share/locale/ur/LC_MESSAGES/lxmusic.mo
-share/locale/ur_PK/LC_MESSAGES/lxmusic.mo
-share/locale/vi/LC_MESSAGES/lxmusic.mo
-share/locale/zh_CN/LC_MESSAGES/lxmusic.mo
-share/locale/zh_TW/LC_MESSAGES/lxmusic.mo
-share/lxmusic/lxmusic.ui.glade
-share/lxmusic/popup.ui.glade
-share/lxmusic/pref-dlg.ui.glade
-share/lxmusic/track-info.ui.glade
+%%NLS%%share/locale/af/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/ar/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/bg/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/bn_IN/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/da/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/de/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/el/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/es/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/es_VE/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/et/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/eu/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/fa/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/frp/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/he/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/hr/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/id/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/it/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/lt/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/ml/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/ms/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/nn/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/ps/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/ur/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/ur_PK/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/lxmusic.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/lxmusic.mo
+%%DATADIR%%/lxmusic.ui.glade
+%%DATADIR%%/popup.ui.glade
+%%DATADIR%%/pref-dlg.ui.glade
+%%DATADIR%%/track-info.ui.glade
 share/pixmaps/lxmusic.png
-@dirrm share/lxmusic
-@dirrmtry share/locale/ur_PK/LC_MESSAGES
-@dirrmtry share/locale/ur_PK
-@dirrmtry share/locale/frp/LC_MESSAGES
-@dirrmtry share/locale/frp
-@dirrmtry share/locale/es_VE/LC_MESSAGES
-@dirrmtry share/locale/es_VE
+@dirrm %%DATADIR%%
+%%NLS%%@dirrmtry share/locale/ur_PK/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/ur_PK
+%%NLS%%@dirrmtry share/locale/frp/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/frp
+%%NLS%%@dirrmtry share/locale/es_VE/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/es_VE
 @dirrmtry share/applications
-@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
-@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true



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