aboutsummaryrefslogtreecommitdiffstats
path: root/print/jabref
diff options
context:
space:
mode:
authormandree <mandree@FreeBSD.org>2013-01-02 06:22:44 +0800
committermandree <mandree@FreeBSD.org>2013-01-02 06:22:44 +0800
commit4ed8d02b2f41f6d07b084f2eb981a6ddc6c75790 (patch)
tree0ef1a9e65bf42df9d400ee338702e4ad696ebb89 /print/jabref
parent7bbe418b54e2081e44a69b7dcbbabf68c0fb9990 (diff)
downloadfreebsd-ports-gnome-4ed8d02b2f41f6d07b084f2eb981a6ddc6c75790.tar.gz
freebsd-ports-gnome-4ed8d02b2f41f6d07b084f2eb981a6ddc6c75790.tar.zst
freebsd-ports-gnome-4ed8d02b2f41f6d07b084f2eb981a6ddc6c75790.zip
Update to new upstream release 2.9.1.
Add .desktop and icon file. Changes since 2.9: - Command line option --importToOpen now also adds to an open tab when JabRef is launched. - Importing of entries works again. Fixes bug 1121. - Import inspection dialog is now modal. - Replaced Java launcher by launch4j. Fixes bugs 1100, 1103, 1123. - Menu font size can now be changed again. Help contents are also enlarged accordingly. Fixes bug 1122. Changes since 2.8.1: see http://jabref.sourceforge.net/revisionhistory.php
Diffstat (limited to 'print/jabref')
-rw-r--r--print/jabref/Makefile13
-rw-r--r--print/jabref/distinfo4
-rw-r--r--print/jabref/files/JabRef-icon-48.pngbin0 -> 2028 bytes
-rw-r--r--print/jabref/files/jabref.desktop.in11
-rw-r--r--print/jabref/pkg-plist7
5 files changed, 28 insertions, 7 deletions
diff --git a/print/jabref/Makefile b/print/jabref/Makefile
index 2f86c6770e99..45bf5fed02e0 100644
--- a/print/jabref/Makefile
+++ b/print/jabref/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= jabref
-PORTVERSION= 2.8.1
+PORTVERSION= 2.9.1
PORTEPOCH= 1
CATEGORIES= print java editors
MASTER_SITES= SF
@@ -21,17 +21,20 @@ JAVA_VERSION= 1.6+
NO_BUILD= yes
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
+icon= ${DATADIR}/${PORTNAME}-icon48x48.png
-SUB_FILES= ${PORTNAME}.sh
+SUB_FILES= ${PORTNAME}.sh ${PORTNAME}.desktop
SUB_LIST= JARNAME=${PORTNAME}.jar
-PLIST_FILES= %%DATADIR%%/${PORTNAME}.jar \
- bin/${PORTNAME}
-PLIST_DIRS= %%DATADIR%%
+USE_GNOME= desktopfileutils
do-install:
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${DATADIR}/${PORTNAME}.jar
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
+ ${INSTALL_DATA} ${FILESDIR}/JabRef-icon-48.png "${icon}"
+ ${MKDIR} ${DESKTOPDIR}
+ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${DESKTOPDIR}
+ -${LOCALBASE}/bin/update-desktop-database > /dev/null
.include <bsd.port.mk>
diff --git a/print/jabref/distinfo b/print/jabref/distinfo
index 55221f0d6862..31d21cd668a4 100644
--- a/print/jabref/distinfo
+++ b/print/jabref/distinfo
@@ -1,2 +1,2 @@
-SHA256 (JabRef-2.8.1.jar) = 34d82c7bcaa4158275a6604caf68771273df92f5500f34b0aa88dd2a7b6482bf
-SIZE (JabRef-2.8.1.jar) = 12894079
+SHA256 (JabRef-2.9.1.jar) = a59579c8149f420672f7b8e32dbaabc2f14770c3ceb561af4f825b0bfcf5ca2d
+SIZE (JabRef-2.9.1.jar) = 15099372
diff --git a/print/jabref/files/JabRef-icon-48.png b/print/jabref/files/JabRef-icon-48.png
new file mode 100644
index 000000000000..ed424d7d25c0
--- /dev/null
+++ b/print/jabref/files/JabRef-icon-48.png
Binary files differ
diff --git a/print/jabref/files/jabref.desktop.in b/print/jabref/files/jabref.desktop.in
new file mode 100644
index 000000000000..4b0048d0dd61
--- /dev/null
+++ b/print/jabref/files/jabref.desktop.in
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Encoding=UTF-8
+Name=Docear
+Comment=Open Source Bibliography Reference Manager for BibTeX databases
+Icon=%%PREFIX%%/share/jabref/jabref-icon48x48.png
+Exec=%%PREFIX%%/bin/jabref %f
+MimeTypes=text/x-bibtex;
+Categories=Education;Science;
+StartupNotify=false
diff --git a/print/jabref/pkg-plist b/print/jabref/pkg-plist
new file mode 100644
index 000000000000..6e97aabc4e61
--- /dev/null
+++ b/print/jabref/pkg-plist
@@ -0,0 +1,7 @@
+bin/jabref
+%%DATADIR%%/jabref.jar
+%%DATADIR%%/jabref-icon48x48.png
+share/applications/jabref.desktop
+@dirrm %%DATADIR%%
+@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || :
+@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || :