aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2006-01-26 11:34:23 +0800
committerjylefort <jylefort@FreeBSD.org>2006-01-26 11:34:23 +0800
commit88573008006efeb5cf8c0d1b18f6670071283b75 (patch)
tree8edeb0180b009eb002e2f44213b8203f7a49af4b /misc
parent50f4fd43cd9a3093e4d730b8a6d6b7cc4bedebc1 (diff)
downloadfreebsd-ports-gnome-88573008006efeb5cf8c0d1b18f6670071283b75.tar.gz
freebsd-ports-gnome-88573008006efeb5cf8c0d1b18f6670071283b75.tar.zst
freebsd-ports-gnome-88573008006efeb5cf8c0d1b18f6670071283b75.zip
[1]:
- Install using ${INSTALL_DATA} - Respect ${PREFIX} in the wrapper script Moreover [2]: - Invoke java using exec - Move to ${X11BASE} [1]: PR: ports/91981 Submitted by: maintainer [2]: Approved by: maintainer
Diffstat (limited to 'misc')
-rw-r--r--misc/tvbrowser/Makefile17
-rw-r--r--misc/tvbrowser/files/tvbrowser3
-rw-r--r--misc/tvbrowser/files/tvbrowser.in2
3 files changed, 15 insertions, 7 deletions
diff --git a/misc/tvbrowser/Makefile b/misc/tvbrowser/Makefile
index 52329d08f418..f042e6dd8214 100644
--- a/misc/tvbrowser/Makefile
+++ b/misc/tvbrowser/Makefile
@@ -7,6 +7,7 @@
PORTNAME= tvbrowser
PORTVERSION= 2.1
+PORTREVISION= 1
CATEGORIES= german java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= tvbrowser
@@ -14,14 +15,22 @@ MASTER_SITE_SUBDIR= tvbrowser
MAINTAINER= lars.engels@0x20.net
COMMENT= A digital tv guide
+USE_X_PREFIX= yes
NO_BUILD= yes
USE_JAVA= yes
JAVA_VERSION= 1.4+
+SUB_FILES= tvbrowser
+
+DESKTOP_ENTRIES="TV-Browser" \
+ "Browse TV programs" \
+ "${DATADIR}/imgs/tvbrowser128.png" \
+ "tvbrowser" \
+ "Application;TV;" \
+ false
do-install:
- @${MKDIR} ${PREFIX}/share/${PORTNAME}
- @${CP} -r ${WRKSRC}/* ${PREFIX}/share/${PORTNAME}
- @${CP} -r ${FILESDIR}/tvbrowser /${PREFIX}/bin/
- @${CHMOD} 755 /${PREFIX}/bin/tvbrowser
+ cd ${WRKSRC} && ${FIND} . -type d -exec ${MKDIR} "${DATADIR}/{}" \;
+ cd ${WRKSRC} && ${FIND} . -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
+ ${INSTALL_SCRIPT} ${WRKDIR}/tvbrowser ${PREFIX}/bin
.include <bsd.port.mk>
diff --git a/misc/tvbrowser/files/tvbrowser b/misc/tvbrowser/files/tvbrowser
deleted file mode 100644
index 2def45ed6f28..000000000000
--- a/misc/tvbrowser/files/tvbrowser
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-cd /usr/local/share/tvbrowser && java -jar tvbrowser.jar
diff --git a/misc/tvbrowser/files/tvbrowser.in b/misc/tvbrowser/files/tvbrowser.in
new file mode 100644
index 000000000000..6c2ee8422fea
--- /dev/null
+++ b/misc/tvbrowser/files/tvbrowser.in
@@ -0,0 +1,2 @@
+#!/bin/sh
+cd %%DATADIR%% && exec %%LOCALBASE%%/bin/java -jar tvbrowser.jar "$@"