Bug 183288 - [maintainer update] audio/spek - depend on pkgconfig, make NLS optional
Summary: [maintainer update] audio/spek - depend on pkgconfig, make NLS optional
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Danilo Egea Gondolfo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-25 03:50 UTC by Alexander Kojevnikov
Modified: 2013-10-26 03:10 UTC (History)
0 users

See Also:


Attachments
file.diff (2.97 KB, patch)
2013-10-25 03:50 UTC, Alexander Kojevnikov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kojevnikov 2013-10-25 03:50:01 UTC
This fixes builds on the package build server.

Fix: Patch attached with submission follows:
Comment 1 Danilo Egea Gondolfo freebsd_committer 2013-10-25 12:27:49 UTC
Responsible Changed
From-To: freebsd-ports-bugs->danilo

I'll take it.
Comment 2 dfilter service freebsd_committer 2013-10-26 03:04:47 UTC
Author: danilo
Date: Sat Oct 26 02:04:40 2013
New Revision: 331646
URL: http://svnweb.freebsd.org/changeset/ports/331646

Log:
  - Fix build [1]
  - Update pkg-descr [1]
  - Add stage support
  - Add NLS option
  - Use GCC only in versions < 1000054
  
  PR:		ports/183288
  Submitted by:	Alexander Kojevnikov <alexander@kojevnikov.com> (maintainer) [1]

Modified:
  head/audio/spek/Makefile
  head/audio/spek/pkg-descr
  head/audio/spek/pkg-plist

Modified: head/audio/spek/Makefile
==============================================================================
--- head/audio/spek/Makefile	Sat Oct 26 01:35:09 2013	(r331645)
+++ head/audio/spek/Makefile	Sat Oct 26 02:04:40 2013	(r331646)
@@ -14,12 +14,8 @@ LICENSE=	GPLv3
 
 LIB_DEPENDS=	libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
 
-MAN1=		spek.1
-
 USE_XZ=		yes
-NO_STAGE=	yes
-USE_GCC=	4.7+
-USES=		gettext gmake
+USES=		gmake pkgconfig desktop-file-utils
 USE_GNOME=	desktopfileutils intltool
 USE_WX=	2.8+
 WX_UNICODE=	yes
@@ -27,10 +23,19 @@ WX_CONF_ARGS=	absolute
 GNU_CONFIGURE=	yes
 INSTALLS_ICONS=	yes
 
-post-install:
-	-@update-desktop-database
+OPTIONS_DEFINE=	NLS
+OPTIONS_SUB=	yes
+NLS_USES=	gettext
+NLS_CONFIGURE_ENABLE=	nls
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 1000054
+USE_GCC=	4.7+
+.endif
 
 post-patch:
-	@${REINPLACE_CMD} -e "s,^itlocaledir =.*$$,itlocaledir = ${PREFIX}/share/locale,g" ${WRKSRC}/po/Makefile.in.in
+	@${REINPLACE_CMD} -e "s,^itlocaledir =.*$$,itlocaledir = ${PREFIX}/share/locale,g" \
+		${WRKSRC}/po/Makefile.in.in
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/audio/spek/pkg-descr
==============================================================================
--- head/audio/spek/pkg-descr	Sat Oct 26 01:35:09 2013	(r331645)
+++ head/audio/spek/pkg-descr	Sat Oct 26 02:04:40 2013	(r331646)
@@ -1,4 +1,4 @@
 Spek helps to analyse your audio files by showing their spectrogram.
 Spek supports all popular lossy and lossless audio file formats.
 
-WWW: http://spek-project.org/
+WWW: http://spek.cc/

Modified: head/audio/spek/pkg-plist
==============================================================================
--- head/audio/spek/pkg-plist	Sat Oct 26 01:35:09 2013	(r331645)
+++ head/audio/spek/pkg-plist	Sat Oct 26 02:04:40 2013	(r331646)
@@ -1,4 +1,5 @@
 bin/spek
+man/man1/spek.1.gz
 share/applications/spek.desktop
 share/icons/hicolor/16x16/apps/spek.png
 share/icons/hicolor/22x22/apps/spek.png
@@ -6,25 +7,25 @@ share/icons/hicolor/24x24/apps/spek.png
 share/icons/hicolor/32x32/apps/spek.png
 share/icons/hicolor/48x48/apps/spek.png
 share/icons/hicolor/scalable/apps/spek.svg
-share/locale/cs/LC_MESSAGES/spek.mo
-share/locale/da/LC_MESSAGES/spek.mo
-share/locale/de/LC_MESSAGES/spek.mo
-share/locale/eo/LC_MESSAGES/spek.mo
-share/locale/es/LC_MESSAGES/spek.mo
-share/locale/fr/LC_MESSAGES/spek.mo
-share/locale/it/LC_MESSAGES/spek.mo
-share/locale/ja/LC_MESSAGES/spek.mo
-share/locale/nb/LC_MESSAGES/spek.mo
-share/locale/nl/LC_MESSAGES/spek.mo
-share/locale/pl/LC_MESSAGES/spek.mo
-share/locale/pt_BR/LC_MESSAGES/spek.mo
-share/locale/ru/LC_MESSAGES/spek.mo
-share/locale/sv/LC_MESSAGES/spek.mo
-share/locale/tr/LC_MESSAGES/spek.mo
-share/locale/uk/LC_MESSAGES/spek.mo
-share/locale/vi/LC_MESSAGES/spek.mo
-share/locale/zh_CN/LC_MESSAGES/spek.mo
-share/locale/zh_TW/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/da/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/de/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/eo/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/es/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/it/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/spek.mo
 @dirrmtry share/icons/hicolor/16x16/apps
 @dirrmtry share/icons/hicolor/16x16
 @dirrmtry share/icons/hicolor/22x22/apps
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Danilo Egea Gondolfo freebsd_committer 2013-10-26 03:07:07 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!