aboutsummaryrefslogtreecommitdiff
path: root/games/cutemaze
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2017-02-13 14:30:43 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2017-02-13 14:30:43 +0000
commit4ecd6e5aae7f86aaa2b7790488bd28f0de8b4fc8 (patch)
tree6e9db8fca22155481fce6c4848a0117e98ccad70 /games/cutemaze
parentb584ce29cabab2ad459daa2327ac04041b6459ba (diff)
downloadports-4ecd6e5aae7f86aaa2b7790488bd28f0de8b4fc8.tar.gz
ports-4ecd6e5aae7f86aaa2b7790488bd28f0de8b4fc8.zip
1: Update to 1.2.0.
2: move to QT5.
Notes
Notes: svn path=/head/; revision=433994
Diffstat (limited to 'games/cutemaze')
-rw-r--r--games/cutemaze/Makefile16
-rw-r--r--games/cutemaze/distinfo5
-rw-r--r--games/cutemaze/files/patch-cutemaze.pro11
-rw-r--r--games/cutemaze/pkg-plist18
4 files changed, 38 insertions, 12 deletions
diff --git a/games/cutemaze/Makefile b/games/cutemaze/Makefile
index 9fd9f4c5c474..18419bed23b8 100644
--- a/games/cutemaze/Makefile
+++ b/games/cutemaze/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= cutemaze
-PORTVERSION= 1.1.1
+PORTVERSION= 1.2.0
CATEGORIES= games
MASTER_SITES= http://gottcode.org/${PORTNAME}/
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
@@ -11,12 +11,13 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Simple, top-down game in which mazes are randomly generated
LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USES= qmake tar:bzip2
-USE_QT4= moc_build rcc_build uic_build iconengines_run imageformats_run \
- corelib gui svg
+USE_QT5= buildtools core gui svg imageformats_run linguisttools \
+ widgets
INSTALLS_ICONS= yes
PORTDOCS= ChangeLog NEWS README
@@ -24,25 +25,20 @@ PORTDOCS= ChangeLog NEWS README
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
-
-post-patch:
-.if ! ${PORT_OPTIONS:MNLS}
+post-patch-NLS-off:
@${REINPLACE_CMD} -i '' '/qm.files/,/qm.path/s/^/#/' \
${WRKSRC}/cutemaze.pro
-.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
-
.for d in 16x16 22x22 scalable
@(cd ${WRKSRC}/icons/oxygen && ${COPYTREE_SHARE} ${d} \
${STAGEDIR}${PREFIX}/share/icons/oxygen)
.endfor
-
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
diff --git a/games/cutemaze/distinfo b/games/cutemaze/distinfo
index bbec066b021d..ff8e10cde473 100644
--- a/games/cutemaze/distinfo
+++ b/games/cutemaze/distinfo
@@ -1,2 +1,3 @@
-SHA256 (cutemaze-1.1.1-src.tar.bz2) = 3236d012af36a8390b86524e84d38baa40a12203a1e991c653203f3a23a7445d
-SIZE (cutemaze-1.1.1-src.tar.bz2) = 370854
+TIMESTAMP = 1486992704
+SHA256 (cutemaze-1.2.0-src.tar.bz2) = d23a0d11a237f53d6b8da9234b5b475bbca8d67abbdd124cfa7c0cb4da70349b
+SIZE (cutemaze-1.2.0-src.tar.bz2) = 800890
diff --git a/games/cutemaze/files/patch-cutemaze.pro b/games/cutemaze/files/patch-cutemaze.pro
new file mode 100644
index 000000000000..f521e3cb2f5e
--- /dev/null
+++ b/games/cutemaze/files/patch-cutemaze.pro
@@ -0,0 +1,11 @@
+--- cutemaze.pro.orig 2017-02-13 13:47:42 UTC
++++ cutemaze.pro
+@@ -94,7 +94,7 @@ macx {
+ qm.CONFIG += no_check_exist
+
+ man.files = doc/cutemaze.6
+- man.path = $$PREFIX/share/man/man6
++ man.path = $$PREFIX/man/man6
+
+ INSTALLS += target pixmap icon desktop appdata qm man
+ }
diff --git a/games/cutemaze/pkg-plist b/games/cutemaze/pkg-plist
index 4c19e9fb0af6..61ab437ba511 100644
--- a/games/cutemaze/pkg-plist
+++ b/games/cutemaze/pkg-plist
@@ -1,16 +1,33 @@
bin/cutemaze
+man/man6/cutemaze.6.gz
+share/appdata/cutemaze.appdata.xml
share/applications/cutemaze.desktop
+%%NLS%%%%DATADIR%%/translations/cutemaze_cs.qm
%%NLS%%%%DATADIR%%/translations/cutemaze_de.qm
%%NLS%%%%DATADIR%%/translations/cutemaze_en.qm
+%%NLS%%%%DATADIR%%/translations/cutemaze_eo.qm
%%NLS%%%%DATADIR%%/translations/cutemaze_es.qm
+%%NLS%%%%DATADIR%%/translations/cutemaze_fi.qm
%%NLS%%%%DATADIR%%/translations/cutemaze_fr.qm
%%NLS%%%%DATADIR%%/translations/cutemaze_he.qm
+%%NLS%%%%DATADIR%%/translations/cutemaze_lt.qm
+%%NLS%%%%DATADIR%%/translations/cutemaze_nl.qm
%%NLS%%%%DATADIR%%/translations/cutemaze_pl.qm
%%NLS%%%%DATADIR%%/translations/cutemaze_pt_BR.qm
%%NLS%%%%DATADIR%%/translations/cutemaze_ro.qm
%%NLS%%%%DATADIR%%/translations/cutemaze_ru.qm
%%NLS%%%%DATADIR%%/translations/cutemaze_tr.qm
+share/icons/hicolor/1024x1024/apps/cutemaze.png
+share/icons/hicolor/128x128/apps/cutemaze.png
+share/icons/hicolor/16x16/apps/cutemaze.png
+share/icons/hicolor/22x22/apps/cutemaze.png
+share/icons/hicolor/24x24/apps/cutemaze.png
+share/icons/hicolor/256x256/apps/cutemaze.png
+share/icons/hicolor/32x32/apps/cutemaze.png
share/icons/hicolor/48x48/apps/cutemaze.png
+share/icons/hicolor/512x512/apps/cutemaze.png
+share/icons/hicolor/64x64/apps/cutemaze.png
+share/icons/hicolor/scalable/apps/cutemaze.svg
share/icons/oxygen/16x16/application-exit.png
share/icons/oxygen/16x16/document-new.png
share/icons/oxygen/16x16/games-config-options.png
@@ -42,3 +59,4 @@ share/icons/oxygen/scalable/preferences-desktop-locale.svgz
share/icons/oxygen/scalable/zoom-in.svgz
share/icons/oxygen/scalable/zoom-out.svgz
share/pixmaps/cutemaze.png
+share/pixmaps/cutemaze.xpm