aboutsummaryrefslogtreecommitdiff
path: root/misc/gonvert
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-07-14 12:22:17 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-07-14 12:22:17 +0000
commitc8acd5ca340a491c59c64e3f0e793da8b53732a2 (patch)
treee138d11799aa7661a1983537c42ca6c1d048b4ae /misc/gonvert
parent060676ea0a97d7df6cb26adb9c9b396ba94c420b (diff)
downloadports-c8acd5ca340a491c59c64e3f0e793da8b53732a2.tar.gz
ports-c8acd5ca340a491c59c64e3f0e793da8b53732a2.zip
Notes
Diffstat (limited to 'misc/gonvert')
-rw-r--r--misc/gonvert/Makefile19
-rw-r--r--misc/gonvert/distinfo4
-rw-r--r--misc/gonvert/files/patch-gonvert17
-rw-r--r--misc/gonvert/pkg-plist7
4 files changed, 16 insertions, 31 deletions
diff --git a/misc/gonvert/Makefile b/misc/gonvert/Makefile
index 71ea3efa2542..2da7a82b8a9c 100644
--- a/misc/gonvert/Makefile
+++ b/misc/gonvert/Makefile
@@ -7,31 +7,34 @@
#
PORTNAME= gonvert
-PORTVERSION= 0.2.01
+PORTVERSION= 0.2.05
CATEGORIES= misc python gnome
MASTER_SITES= http://www.unihedron.com/projects/gonvert/downloads/
MAINTAINER= ports@FreeBSD.org
COMMENT= A conversion utility that allows conversion between many units
-RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2
-
USE_X_PREFIX= yes
-USE_GNOME= gnomehier
+USE_GNOME= gnomehier pygtk2
USE_PYTHON= yes
-USE_GMAKE= yes
+USE_REINPLACE= yes
NO_BUILD= yes
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|#!/usr/bin/python|#!/usr/bin/env python|g' ${WRKSRC}/gonvert
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/gonvert ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/gonvert.desktop \
- ${PREFIX}/share/gnome/apps/Utilities
- ${INSTALL_DATA} ${WRKSRC}/pixmaps/gonvert_icon.png \
+ ${PREFIX}/share/gnome/applications
+ ${INSTALL_DATA} ${WRKSRC}/pixmaps/gonvert.png \
${PREFIX}/share/gnome/pixmaps
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/gonvert.glade ${DATADIR}
@${MKDIR} ${DATADIR}/pixmaps
- ${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${DATADIR}/pixmaps
+ ${INSTALL_DATA} ${WRKSRC}/pixmaps/gonvert_picture.png \
+ ${DATADIR}/pixmaps
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in README CHANGELOG FAQ README THANKS TODO
diff --git a/misc/gonvert/distinfo b/misc/gonvert/distinfo
index 1339286f7541..45b9d4fece87 100644
--- a/misc/gonvert/distinfo
+++ b/misc/gonvert/distinfo
@@ -1,2 +1,2 @@
-MD5 (gonvert-0.2.01.tar.gz) = 9996b6a16ea0b83eba3c6cecda2fe628
-SIZE (gonvert-0.2.01.tar.gz) = 109866
+MD5 (gonvert-0.2.05.tar.gz) = 049288a60291da767f7cacd26ae826ba
+SIZE (gonvert-0.2.05.tar.gz) = 73211
diff --git a/misc/gonvert/files/patch-gonvert b/misc/gonvert/files/patch-gonvert
deleted file mode 100644
index 5d4c3260f449..000000000000
--- a/misc/gonvert/files/patch-gonvert
+++ /dev/null
@@ -1,17 +0,0 @@
---- gonvert.orig Mon Jan 26 02:22:42 2004
-+++ gonvert Mon Jan 26 13:22:52 2004
-@@ -1,4 +1,4 @@
--#!/usr/bin/python
-+#!/usr/bin/env python
- # -*- coding: UTF8 -*-
- version = "0.1.7" # keep version information here since Makefile needs it
-
-@@ -655,7 +655,7 @@
- homepath=''
- else:
- #look for it in the installed directory
-- homepath=sys.path[0] + '/../lib/gonvert-'+version + "/"
-+ homepath=sys.path[0] + '/../share/gonvert' "/"
-
- gladefile=homepath+'gonvert.glade'
-
diff --git a/misc/gonvert/pkg-plist b/misc/gonvert/pkg-plist
index 5f1fe0dd5ad9..89abdab6279c 100644
--- a/misc/gonvert/pkg-plist
+++ b/misc/gonvert/pkg-plist
@@ -4,11 +4,10 @@ bin/gonvert
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/THANKS
%%PORTDOCS%%%%DOCSDIR%%/TODO
-share/gnome/apps/Utilities/gonvert.desktop
-share/gnome/pixmaps/gonvert_icon.png
+share/gnome/applications/gonvert.desktop
+share/gnome/pixmaps/gonvert.png
%%DATADIR%%/gonvert.glade
-%%DATADIR%%/pixmaps/gonvert.png
-%%DATADIR%%/pixmaps/gonvert_icon.png
+%%DATADIR%%/pixmaps/gonvert_picture.png
@dirrm %%DATADIR%%/pixmaps
@dirrm %%DATADIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%