aboutsummaryrefslogtreecommitdiff
path: root/deskutils
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2013-10-23 19:18:01 +0000
committerMatthias Andree <mandree@FreeBSD.org>2013-10-23 19:18:01 +0000
commit7a51592639421df05b9fd7e0358c77c3c33c70f4 (patch)
treeb69e9fdd8930c8b3a15d76b292e42d86942ddb6c /deskutils
parent8c65b19716c02cd18a8e7ab6627d7b716c241436 (diff)
downloadports-7a51592639421df05b9fd7e0358c77c3c33c70f4.tar.gz
ports-7a51592639421df05b9fd7e0358c77c3c33c70f4.zip
Upgrade to first stable release.
Support staging. Misc conversions to USES=...
Notes
Notes: svn path=/head/; revision=331416
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/docear/Makefile43
-rw-r--r--deskutils/docear/distinfo4
-rw-r--r--deskutils/docear/pkg-plist9
3 files changed, 22 insertions, 34 deletions
diff --git a/deskutils/docear/Makefile b/deskutils/docear/Makefile
index fbb14487cd6e..7407470e8f6d 100644
--- a/deskutils/docear/Makefile
+++ b/deskutils/docear/Makefile
@@ -2,34 +2,31 @@
# $FreeBSD$
PORTNAME= docear
-PORTVERSION= 1.0.0.r4
+PORTVERSION= 1.0.0
+_suffix= _stable
CATEGORIES= deskutils java
-MASTER_SITES= http://downloads.docear.org/${PORTVERSION:S/.r/_rc/}/ \
+MASTER_SITES= http://downloads.docear.org/${PORTVERSION}${_suffix}/ \
+ SF/docear/1.x/${PORTVERSION}${_suffix} \
LOCAL/mandree/${DIST_SUBDIR}/
-# SF/docear/1.x/${PORTVERSION:S/.b/_beta/}
DISTNAME= docear_linux
-DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
+DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}${_suffix}
MAINTAINER= mandree@FreeBSD.org
COMMENT= Mind Mapping tool with Reference, Library, and PDF Management
LICENSE= GPLv2
-BUILD_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info
-RUN_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info
-
+USES= desktop-file-utils shared-mime-info
USE_JAVA= yes
-USE_GNOME= desktopfileutils
JAVA_VENDOR= openjdk
JAVA_VERSION= 1.6
NO_BUILD= yes
JDATADIR= ${JAVASHAREDIR}/${PORTNAME}
icon= ${DATADIR}/${PORTNAME}-icon48x48.png
-WRKSRC= ${WRKDIR}/docear-1.0.0.15_rc_build213
+WRKSRC= ${WRKDIR}/docear-1.0.0.15_stable_build214
SUB_FILES= docear.desktop
-NO_STAGE= yes
post-patch:
${REINPLACE_CMD} -e 's/readlink -mn/readlink -n/g' \
-e 's,#!/bin/bash,#!/bin/sh,' \
@@ -42,22 +39,18 @@ do-install:
# We can't install into $DOCSDIR or support disabling a DOCS option
# since the documentation is an integral part of the installation,
# such as online help via the program menus.
- ${MKDIR} ${JDATADIR}
- (cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${JDATADIR})
+ ${MKDIR} ${STAGEDIR}${JDATADIR}
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${JDATADIR})
${PRINTF} '#!/bin/sh\nset -eu\nexport JAVA_HOME="%s"\ncd "%s"\nexec "%s" "$$@"\n' \
'${JAVA_HOME}' '${JDATADIR}' '${JDATADIR}/docear.sh' \
- >${PREFIX}/bin/${PORTNAME}
- ${CHMOD} a=rx ${JDATADIR}/docear.sh \
- ${PREFIX}/bin/${PORTNAME}
- ${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${FILESDIR}/docear48.png "${icon}"
- ${MKDIR} ${DESKTOPDIR}
- ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${DESKTOPDIR}
- ${MKDIR} ${PREFIX}/share/mime/packages
- ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.xml ${PREFIX}/share/mime/packages/
-
-post-install:
- -update-desktop-database > /dev/null
- -update-mime-database ${PREFIX}/share/mime > /dev/null
+ >${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ ${CHMOD} a=rx ${STAGEDIR}${JDATADIR}/docear.sh \
+ ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${FILESDIR}/docear48.png "${STAGEDIR}${icon}"
+ ${MKDIR} ${STAGEDIR}${DESKTOPDIR}
+ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages
+ ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.xml ${STAGEDIR}${PREFIX}/share/mime/packages/
.include <bsd.port.mk>
diff --git a/deskutils/docear/distinfo b/deskutils/docear/distinfo
index dccdaebac604..57a4b6945f76 100644
--- a/deskutils/docear/distinfo
+++ b/deskutils/docear/distinfo
@@ -1,2 +1,2 @@
-SHA256 (docear-1.0.0.r4/docear_linux.tar.gz) = 050a60efa921b3b455971b2e58acaaca750f0811e7bc2f1af8bf27616a510175
-SIZE (docear-1.0.0.r4/docear_linux.tar.gz) = 56964953
+SHA256 (docear-1.0.0/docear_linux.tar.gz) = a56fc87174cb44e8a5b04db89973c1af7dfcd825d9f1019ae3b41dee0893c028
+SIZE (docear-1.0.0/docear_linux.tar.gz) = 56961890
diff --git a/deskutils/docear/pkg-plist b/deskutils/docear/pkg-plist
index 9337aad6ee5b..7bbf0d05217d 100644
--- a/deskutils/docear/pkg-plist
+++ b/deskutils/docear/pkg-plist
@@ -3,8 +3,6 @@ bin/docear
share/applications/docear.desktop
share/docear/docear-icon48x48.png
@dirrm share/docear
-@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || :
-@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
share/java/docear/core/org.freeplane.core/lib/commons-io-2.4.jar
share/java/docear/core/org.freeplane.core/lib/commons-lang-2.0.jar
share/java/docear/core/org.freeplane.core/lib/flamingo-6.3-javadoc.jar
@@ -104,7 +102,6 @@ share/java/docear/docear.sh
share/java/docear/docearConsole.exe
share/java/docear/framework.jar
share/java/docear/freeplanelauncher.jar
-share/java/docear/gitinfo.txt
share/java/docear/init.xargs
share/java/docear/license.txt
share/java/docear/plugins/org.docear.plugin.bibtex/lib/JabRef-2.7.1.jar
@@ -195,7 +192,6 @@ share/java/docear/plugins/org.freeplane.plugin.svg/META-INF/MANIFEST.MF
share/java/docear/plugins/org.freeplane.plugin.workspace/lib/plugin.jar
share/java/docear/plugins/org.freeplane.plugin.workspace/META-INF/MANIFEST.MF
share/java/docear/props.xargs
-share/java/docear/resources/gitinfo.properties
share/java/docear/resources/ortho/dictionary_de.ortho
share/java/docear/resources/ortho/dictionary_en.ortho
share/java/docear/resources/ortho/dictionary_fr.ortho
@@ -225,7 +221,8 @@ share/java/docear/scripts/apiGenerator.groovy
share/java/docear/scripts/freeplane.dsld
share/java/docear/scripts/installScriptAddOn.groovy
share/mime/packages/docear.xml
-share/mime/text/x-docear.xml
+@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || :
+@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
@dirrm share/java/docear/scripts
@dirrm share/java/docear/resources/xslt
@dirrm share/java/docear/resources/templates
@@ -281,5 +278,3 @@ share/mime/text/x-docear.xml
@dirrm share/java/docear/core/org.freeplane.core
@dirrm share/java/docear/core
@dirrm share/java/docear
-@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || :
-@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime