Bug 179329 - [PATCH] games/plee-the-bear: Fix manual pages, add license, NLS, OptionsNG
Summary: [PATCH] games/plee-the-bear: Fix manual pages, add license, NLS, OptionsNG
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: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-05 13:20 UTC by nemysis
Modified: 2013-06-17 01:47 UTC (History)
1 user (show)

See Also:


Attachments
plee-the-bear-0.6.0_4.patch (3.88 KB, patch)
2013-06-05 13:20 UTC, nemysis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2013-06-05 13:20:00 UTC
- Add license
- Add dependency for textproc/docbook-to-man
- Fix manual pages
- Add NLS Options
- Add OptionsNG
- Fix NLS
- Update WWW
- Trim pkg-plist, remove mtree

Port maintainer (amdmi3@FreeBSD.org) is cc'd.

Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_7 (mode: change, diff: ports)

How-To-Repeat: 
Build log, plee-the-bear-0.6.0_4

https://redports.org/buildarchive/20130604223500-39521/


Build log, plee-the-bear-0.6.0_3

https://redports.org/buildarchive/20130604122201-38548/

docbook-to-man was not found on your system. The manpages of the engine are not generated.

docbook-to-man was not found on your system. The manpages of Plee the Bear are not generated.


port test in normal FreeBSD_Ports Jail or native

pkg info | grep docbook-to-man
docbook-to-man-1.0_2           A DocBook SGML DTD into nroff/troff -man macros converter

...
The deinstallation will free 44 MB
Deleting plee-the-bear-0.6.0_3... done
===> Extra files and directories check
share/man/man6/running-bear.6
share/man/man6/plee-the-bear.6
@dirrmtry share/man/man6
===> Cleaning up after port test
===>  Cleaning for plee-the-bear-0.6.0_3
===>  Removing existing /var/tmp/ports/plee-the-bear-0.6.0_3 dir
===> Done.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-05 13:20:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->amdmi3

Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179329 

Date: Fri, 7 Jun 2013 03:39:30 +0200
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-06-14 13:25:21 UTC
Author: amdmi3
Date: Fri Jun 14 12:25:13 2013
New Revision: 320903
URL: http://svnweb.freebsd.org/changeset/ports/320903

Log:
  - Fix WWW
  - Add LICENSE
  - Make NLS optional
  - Install manpages
  
  PR:		179329
  Submitted by:	nemysis <nemysis@gmx.ch>

Modified:
  head/games/plee-the-bear/Makefile
  head/games/plee-the-bear/pkg-descr
  head/games/plee-the-bear/pkg-plist

Modified: head/games/plee-the-bear/Makefile
==============================================================================
--- head/games/plee-the-bear/Makefile	Fri Jun 14 12:23:58 2013	(r320902)
+++ head/games/plee-the-bear/Makefile	Fri Jun 14 12:25:13 2013	(r320903)
@@ -3,13 +3,20 @@
 
 PORTNAME=	plee-the-bear
 PORTVERSION=	0.6.0
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	games
 MASTER_SITES=	SF/${PORTNAME}/Plee%20the%20Bear/${PORTVERSION:R}
 
 MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	2D platform jump and run game
 
+LICENSE=	GPLv2 CCbySA3
+LICENSE_COMB=	dual
+LICENSE_NAME_CCbySA3=Attribution-ShareAlike 3.0 Unported
+LICENSE_FILE_CCbySA3=${WRKSRC}/CCPL
+LICENSE_PERMS_CCbySA3=dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+BUILD_DEPENDS=	docbook-to-man:${PORTSDIR}/textproc/docbook-to-man
 LIB_DEPENDS=	boost_filesystem:${PORTSDIR}/devel/boost-libs \
 		claw_application:${PORTSDIR}/devel/libclaw
 
@@ -21,8 +28,27 @@ USE_LDCONFIG=	yes
 MAKE_JOBS_SAFE=	yes
 USE_GCC=	4.6+
 
-USES=		cmake gettext
+USES=		cmake
 CMAKE_ARGS=	-Dlibclaw_DIR="${LOCALBASE}/share/libclaw/cmake" \
 		-DBEAR_NO_EDITOR=YES
 
+MAN6=		plee-the-bear.6 running-bear.6
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USES+=		gettext
+PLIST_SUB+=	NLS=""
+.else
+PLIST_SUB+=	NLS="@comment "
+.endif
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/CMakeLists.txt
+.if ! ${PORT_OPTIONS:MNLS}
+	@${REINPLACE_CMD} -e 's|locale||' \
+		${WRKSRC}/bear-engine/desktop/CMakeLists.txt \
+		${WRKSRC}/plee-the-bear/desktop/CMakeLists.txt
+.endif
+
 .include <bsd.port.mk>

Modified: head/games/plee-the-bear/pkg-descr
==============================================================================
--- head/games/plee-the-bear/pkg-descr	Fri Jun 14 12:23:58 2013	(r320902)
+++ head/games/plee-the-bear/pkg-descr	Fri Jun 14 12:25:13 2013	(r320903)
@@ -3,4 +3,4 @@ the best platform games of the 90's (the
 of games). You're a bear, trying to catch his son, which ran away
 after he ate all your honey.
 
-WWW: http://plee-the-bear.sourceforge.net/
+WWW: http://sourceforge.net/projects/plee-the-bear/

Modified: head/games/plee-the-bear/pkg-plist
==============================================================================
--- head/games/plee-the-bear/pkg-plist	Fri Jun 14 12:23:58 2013	(r320902)
+++ head/games/plee-the-bear/pkg-plist	Fri Jun 14 12:25:13 2013	(r320903)
@@ -108,10 +108,10 @@ share/icons/hicolor/24x24/apps/ptb.png
 share/icons/hicolor/32x32/apps/ptb.png
 share/icons/hicolor/48x48/apps/ptb.png
 share/icons/hicolor/64x64/apps/ptb.png
-share/locale/fr/LC_MESSAGES/bear-engine.mo
-share/locale/fr/LC_MESSAGES/plee-the-bear.mo
-share/locale/nn/LC_MESSAGES/bear-engine.mo
-share/locale/nn/LC_MESSAGES/plee-the-bear.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/bear-engine.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/plee-the-bear.mo
+%%NLS%%share/locale/nn/LC_MESSAGES/bear-engine.mo
+%%NLS%%share/locale/nn/LC_MESSAGES/plee-the-bear.mo
 share/pixmaps/ptb.png
 share/pixmaps/ptb.xpm
 %%DATADIR%%/animation/air_bubble_generator.canim
_______________________________________________
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 Dmitry Marakasov freebsd_committer freebsd_triage 2013-06-14 13:25:26 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!