Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2018 12:38:19 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r488598 - in head/audio/gbsplay: . files
Message-ID:  <201812281238.wBSCcJD7028026@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Fri Dec 28 12:38:19 2018
New Revision: 488598
URL: https://svnweb.freebsd.org/changeset/ports/488598

Log:
  - Update to 0.0.93-130-g6225989 and use version in compliance with PHP section
    5.14. This requires a PORTEPOCH bump.
  - Provide an OPTION for installing bash completions
  - Pacify portlint

Added:
  head/audio/gbsplay/files/
  head/audio/gbsplay/files/patch-Makefile   (contents, props changed)
  head/audio/gbsplay/files/patch-configure   (contents, props changed)
Modified:
  head/audio/gbsplay/Makefile
  head/audio/gbsplay/distinfo
  head/audio/gbsplay/pkg-plist

Modified: head/audio/gbsplay/Makefile
==============================================================================
--- head/audio/gbsplay/Makefile	Fri Dec 28 12:03:14 2018	(r488597)
+++ head/audio/gbsplay/Makefile	Fri Dec 28 12:38:19 2018	(r488598)
@@ -2,92 +2,56 @@
 # $FreeBSD$
 
 PORTNAME=	gbsplay
-PORTVERSION=	0.0.93.20161217
-PORTREVISION=	6
+DISTVERSION=	0.0.93-130
+DISTVERSIONSUFFIX=	-g6225989
+PORTEPOCH=	1
 CATEGORIES=	audio
 
 MAINTAINER=	ehaupt@FreeBSD.org
 COMMENT=	Emulates the sound hardware of the Nintendo Game Boy(TM)
 
 LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYRIGHT
 
-USES=		gmake compiler:c++11-lib
+USES=		compiler:c++11-lib desktop-file-utils gmake localbase:ldflags \
+		shared-mime-info
+USE_CSTD=	gnu89
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	mmitch
-GH_TAGNAME=	2c4486e
+
 HAS_CONFIGURE=	yes
-USE_CSTD=	gnu89
 
-CONFIGURE_ARGS+=	--prefix=${PREFIX}
+CONFIGURE_ARGS+=	--prefix=${PREFIX} --without-xmmsplugin \
+			--sysconfdir=${PREFIX}/etc
 
-CONFIGURE_ARGS+=	--without-xmmsplugin
+MAKE_ENV+=	EXAMPLESDIR="${STAGEDIR}${EXAMPLESDIR}"
 
-MANPAGE1=	gbsplay.1 gbsinfo.1
-MANPAGE5=	gbsplayrc.5
-PORTDOCS=	COPYRIGHT HISTORY README
-
-OPTIONS_DEFINE=	DOCS NAS NLS
+OPTIONS_DEFINE=	BASH_COMPLETIONS DOCS EXAMPLES NAS NLS
+OPTIONS_DEFAULT=BASH_COMPLETIONS
 OPTIONS_SUB=	yes
 
+BASH_COMPLETIONS_DESC=	Install bash completions
+
 NAS_LIB_DEPENDS=	libaudio.so:audio/nas
 NAS_CONFIGURE_ENABLE=	nas
 NLS_CONFIGURE_OFF=	--disable-i18n
 NLS_USES=		gettext
-NLS_LDFLAGS=		-L${LOCALBASE}/lib -lintl
+NLS_LDFLAGS=		-lintl
 
-.include <bsd.port.options.mk>
-
 post-patch:
-	@${REINPLACE_CMD} \
-		-e 's|^\(default.*\)test|\1|' \
-		-e 's#md5sum | cut -f1 -d..#md5 -q#' \
-		${WRKSRC}/${MAKEFILE}
-	@${REINPLACE_CMD} -e \
-		'/^need_include\ /d; \
-		 468s|char argc|int argc|; \
-		 s|/usr/local/include|${LOCALBASE}/include|; \
-		 s|/usr/local/lib|${LOCALBASE}/lib|; \
-		 s|/usr/X11R6/include||; \
-		 s|/usr/X11R6/lib||; \
-		 s|/usr/X11/lib|${LOCALBASE}/lib|; \
-		 s|/usr/lib/X11|${LOCALBASE}/lib/X11|; \
-		 s|-Os||; s|-pipe||; s|-fomit-frame-pointer||; \
-		 s|-march=$$ARCH||' \
-		${WRKSRC}/configure
-	@${REINPLACE_CMD} -e 's|/\(etc/gbsplayrc\)|${PREFIX}/\1|' \
-		${WRKSRC}/gbsplay.c \
-		${WRKSRC}/gbsplay.in.1 \
-		${WRKSRC}/gbsplayrc.in.5
+	@${REINPLACE_CMD} -e "s|/etc/\(gbsplayrc\)|${PREFIX}/etc/\1|" \
+		${WRKSRC}/man/gbsplay.in.1 ${WRKSRC}/man/gbsplayrc.in.5
 
-do-install:
-.for f in ${PORTNAME} gbsinfo
-	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
-.endfor
-
-.for f in ${MANPAGE1} ${MANPAGE5}
-	${INSTALL_MAN} ${WRKSRC}/${f} ${STAGEDIR}${MAN${f:E}PREFIX}/man/man${f:E}
-.endfor
-
-	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/examples/nightmode.gbs \
-		${STAGEDIR}${EXAMPLESDIR}
-
+post-install:
 	${INSTALL_DATA} ${WRKSRC}/examples/gbsplayrc_sample \
 		${STAGEDIR}${PREFIX}/etc/gbsplayrc.sample
-.if !exists(${STAGEDIR}${PREFIX}/etc/gbsplayrc)
-	${INSTALL_DATA} ${WRKSRC}/examples/gbsplayrc_sample \
-		${STAGEDIR}${PREFIX}/etc/gbsplayrc
-.endif
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gbsplay \
+		${STAGEDIR}${PREFIX}/bin/gbsinfo
 
-.if ${PORT_OPTIONS:MNLS}
-.for l in de en
-	${INSTALL_DATA} ${WRKSRC}/po/${l}.mo \
-		${STAGEDIR}${PREFIX}/share/locale/${l}/LC_MESSAGES/gbsplay.mo
-.endfor
-.endif
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
-.endfor
+post-install-BASH_COMPLETIONS-on:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
+	${INSTALL_DATA} ${WRKSRC}/contrib/gbsplay.bashcompletion \
+		${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME}
 
 .include <bsd.port.mk>

Modified: head/audio/gbsplay/distinfo
==============================================================================
--- head/audio/gbsplay/distinfo	Fri Dec 28 12:03:14 2018	(r488597)
+++ head/audio/gbsplay/distinfo	Fri Dec 28 12:38:19 2018	(r488598)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1486032638
-SHA256 (mmitch-gbsplay-0.0.93.20161217-2c4486e_GH0.tar.gz) = 07358b957397b565bbe66e3b515ff22b33f5eb1f8381f8ce7f9a29a6d729901d
-SIZE (mmitch-gbsplay-0.0.93.20161217-2c4486e_GH0.tar.gz) = 126791
+TIMESTAMP = 1545989371
+SHA256 (mmitch-gbsplay-0.0.93-130-g6225989_GH0.tar.gz) = 00bc00bbec4a66edef6dfd71df4c0b55c28fa9b65cc614381ae258576fdd1622
+SIZE (mmitch-gbsplay-0.0.93-130-g6225989_GH0.tar.gz) = 129907

Added: head/audio/gbsplay/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/gbsplay/files/patch-Makefile	Fri Dec 28 12:38:19 2018	(r488598)
@@ -0,0 +1,25 @@
+--- Makefile.orig	2018-12-25 13:50:45 UTC
++++ Makefile
+@@ -71,7 +71,7 @@ xmmsdir     := $(DESTDIR)$(XMMSPREFIX)$(XMMS_INPUT_PLU
+ man1dir     := $(mandir)/man1
+ man5dir     := $(mandir)/man5
+ contribdir  := $(docdir)/contrib
+-exampledir  := $(docdir)/examples
++exampledir  := $(EXAMPLESDIR)
+ 
+ DISTDIR := gbsplay-$(VERSION)
+ 
+@@ -82,10 +82,10 @@ GBSPLAYLDFLAGS :=
+ 
+ export Q VERBOSE CC HOSTCC BUILDCC GBSCFLAGS GBSLDFLAGS
+ 
+-docs               := README HISTORY COPYRIGHT
++docs               := README
+ docs-dist          := INSTALL CODINGSTYLE TESTSUITE gbsformat.txt
+-contribs           := contrib/gbs2ogg.sh contrib/gbsplay.bashcompletion
+-examples           := examples/nightmode.gbs examples/gbsplayrc_sample
++contribs           := contrib/gbs2ogg.sh
++examples           := examples/nightmode.gbs
+ 
+ mans               := man/gbsplay.1    man/gbsinfo.1    man/gbsplayrc.5
+ mans_src           := man/gbsplay.in.1 man/gbsinfo.in.1 man/gbsplayrc.in.5

Added: head/audio/gbsplay/files/patch-configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/gbsplay/files/patch-configure	Fri Dec 28 12:38:19 2018	(r488598)
@@ -0,0 +1,33 @@
+--- configure.orig	2018-12-25 13:50:45 UTC
++++ configure
+@@ -669,7 +669,6 @@ fi
+ 
+ ## check for various headers
+ 
+-need_include inttypes.h
+ 
+ if [ "$use_devdsp" != no ]; then
+     remember_use devdsp
+@@ -729,11 +728,11 @@ fi
+ 
+ if [ "$use_nas" != no ]; then
+     remember_use nas
+-    check_include audio/audiolib.h "/usr/X11R6/include"
++    check_include audio/audiolib.h ""
+     retval1=$?
+     retval2=1
+     if [ $retval1 -eq 0 ]; then
+-        check_libs audio "X11 Xt m" "/usr/X11R6/lib /usr/X11/lib /usr/lib/X11" <<EOF
++        check_libs audio "X11 Xt m" " /usr/local/lib /usr/local/lib/X11" <<EOF
+ int main(int argc, char **argv) { return 0; }
+ EOF
+         retval2=$?
+@@ -954,7 +953,7 @@ append_nodupe CFLAGS -D_FORTIFY_SOURCE=2 -Wall -fsigne
+ if [ "$use_debug" = "yes" ]; then
+     append_nodupe CFLAGS -g3
+ else
+-    append_nodupe CFLAGS -Os -pipe -fomit-frame-pointer
++    append_nodupe CFLAGS   
+ fi
+ 
+ EXTRA_CFLAGS="$CFLAGS"

Modified: head/audio/gbsplay/pkg-plist
==============================================================================
--- head/audio/gbsplay/pkg-plist	Fri Dec 28 12:03:14 2018	(r488597)
+++ head/audio/gbsplay/pkg-plist	Fri Dec 28 12:38:19 2018	(r488598)
@@ -1,9 +1,28 @@
-bin/gbsplay
 bin/gbsinfo
+bin/gbsplay
 @sample etc/gbsplayrc.sample
-%%NLS%%share/locale/de/LC_MESSAGES/gbsplay.mo
-%%NLS%%share/locale/en/LC_MESSAGES/gbsplay.mo
+%%BASH_COMPLETIONS%%etc/bash_completion.d/gbsplay
 man/man1/gbsinfo.1.gz
 man/man1/gbsplay.1.gz
 man/man5/gbsplayrc.5.gz
-%%EXAMPLESDIR%%/nightmode.gbs
+share/applications/gbsplay.desktop
+share/applications/mimeinfo.cache
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/contrib/gbs2ogg.sh
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nightmode.gbs
+%%NLS%%share/locale/de/LC_MESSAGES/gbsplay.mo
+%%NLS%%share/locale/en/LC_MESSAGES/gbsplay.mo
+share/mime/XMLnamespaces
+share/mime/aliases
+share/mime/audio/prs.gbs.xml
+share/mime/generic-icons
+share/mime/globs
+share/mime/globs2
+share/mime/icons
+share/mime/magic
+share/mime/mime.cache
+share/mime/packages/gbsplay.xml
+share/mime/subclasses
+share/mime/treemagic
+share/mime/types
+share/mime/version



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