summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/libgtk-java
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-02-29 16:42:55 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-02-29 16:42:55 +0800
commit60f71d32f2d411286dd0b25ea04d3ea05436406d (patch)
tree4453448ff74890f21110fa0cee8ce0435ac1697e /x11-toolkits/libgtk-java
parentf166103879506d2e29984e410cb6b4cb346734fa (diff)
downloadmarcuscom-ports-60f71d32f2d411286dd0b25ea04d3ea05436406d.tar
marcuscom-ports-60f71d32f2d411286dd0b25ea04d3ea05436406d.tar.gz
marcuscom-ports-60f71d32f2d411286dd0b25ea04d3ea05436406d.tar.bz2
marcuscom-ports-60f71d32f2d411286dd0b25ea04d3ea05436406d.tar.lz
marcuscom-ports-60f71d32f2d411286dd0b25ea04d3ea05436406d.tar.xz
marcuscom-ports-60f71d32f2d411286dd0b25ea04d3ea05436406d.tar.zst
marcuscom-ports-60f71d32f2d411286dd0b25ea04d3ea05436406d.zip
Install a jar file symlink so users don't have to change their code each time
a new version is released. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1932 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-toolkits/libgtk-java')
-rw-r--r--x11-toolkits/libgtk-java/Makefile4
-rw-r--r--x11-toolkits/libgtk-java/pkg-message2
-rw-r--r--x11-toolkits/libgtk-java/pkg-plist1
3 files changed, 5 insertions, 2 deletions
diff --git a/x11-toolkits/libgtk-java/Makefile b/x11-toolkits/libgtk-java/Makefile
index 3d04f07c1..49ff515e7 100644
--- a/x11-toolkits/libgtk-java/Makefile
+++ b/x11-toolkits/libgtk-java/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libgtk-java
PORTVERSION= 2.3.5
+PORTREVISION= 1
CATEGORIES= x11-toolkits java
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.3
@@ -39,11 +40,12 @@ do-install:
${MKDIR} ${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/gtk/lib/gtk${GTK_API_VERSION}-${PORTVERSION}.jar \
${JAVAJARDIR}
+ ${LN} -sf ${JAVAJARDIR}/gtk${GTK_API_VERSION}-${PORTVERSION}.jar \
+ ${JAVAJARDIR}/gtk${GTK_API_VERSION}.jar
post-install:
@${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|g ; \
s|%%PREFIX%%|${PREFIX}|g ; \
- s|%%PORTVERSION%%|${PORTVERSION}|g ; \
s|%%GTK_API_VERSION%%|${GTK_API_VERSION}|g' \
< ${PKGDIR}/pkg-message > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
diff --git a/x11-toolkits/libgtk-java/pkg-message b/x11-toolkits/libgtk-java/pkg-message
index c572e5839..a7b105573 100644
--- a/x11-toolkits/libgtk-java/pkg-message
+++ b/x11-toolkits/libgtk-java/pkg-message
@@ -2,6 +2,6 @@
Libgtk-java was successfully installed. In order to build and run GTK+
Java applications, you must add the following to your CLASSPATH:
-%%JAVAJARDIR%%/gtk%%GTK_API_VERSION%%-%%PORTVERSION%%.jar
+%%JAVAJARDIR%%/gtk%%GTK_API_VERSION%%.jar
************************************************************************
diff --git a/x11-toolkits/libgtk-java/pkg-plist b/x11-toolkits/libgtk-java/pkg-plist
index 6786648ca..2c8e8158b 100644
--- a/x11-toolkits/libgtk-java/pkg-plist
+++ b/x11-toolkits/libgtk-java/pkg-plist
@@ -1,3 +1,4 @@
lib/libgtkjava%%GTK_API_VERSION%%.so.%%PORTVERSION%%
lib/libgtkjava%%GTK_API_VERSION%%.so
share/java/classes/gtk%%GTK_API_VERSION%%-%%PORTVERSION%%.jar
+share/java/classes/gtk%%GTK_API_VERSION%%.jar