View | Details | Raw Unified | Return to bug 69003
Collapse All | Expand All

(-)misc/gonvert/Makefile (-8 / +11 lines)
Lines 7-37 Link Here
7
#
7
#
8
8
9
PORTNAME=	gonvert
9
PORTNAME=	gonvert
10
PORTVERSION=	0.2.01
10
PORTVERSION=	0.2.05
11
CATEGORIES=	misc python gnome
11
CATEGORIES=	misc python gnome
12
MASTER_SITES=	http://www.unihedron.com/projects/gonvert/downloads/
12
MASTER_SITES=	http://www.unihedron.com/projects/gonvert/downloads/
13
13
14
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	A conversion utility that allows conversion between many units
15
COMMENT=	A conversion utility that allows conversion between many units
16
16
17
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2
18
19
USE_X_PREFIX=	yes
17
USE_X_PREFIX=	yes
20
USE_GNOME=	gnomehier
18
USE_GNOME=	gnomehier pygtk2
21
USE_PYTHON=	yes
19
USE_PYTHON=	yes
22
USE_GMAKE=	yes
20
USE_REINPLACE=	yes
23
NO_BUILD=	yes
21
NO_BUILD=	yes
24
22
23
post-patch:
24
	@${REINPLACE_CMD} -e \
25
		's|#!/usr/bin/python|#!/usr/bin/env python|g' ${WRKSRC}/gonvert
26
25
do-install:
27
do-install:
26
	${INSTALL_SCRIPT} ${WRKSRC}/gonvert ${PREFIX}/bin
28
	${INSTALL_SCRIPT} ${WRKSRC}/gonvert ${PREFIX}/bin
27
	${INSTALL_DATA} ${WRKSRC}/gonvert.desktop \
29
	${INSTALL_DATA} ${WRKSRC}/gonvert.desktop \
28
		${PREFIX}/share/gnome/apps/Utilities
30
		${PREFIX}/share/gnome/applications
29
	${INSTALL_DATA} ${WRKSRC}/pixmaps/gonvert_icon.png \
31
	${INSTALL_DATA} ${WRKSRC}/pixmaps/gonvert.png \
30
		${PREFIX}/share/gnome/pixmaps
32
		${PREFIX}/share/gnome/pixmaps
31
	@${MKDIR} ${DATADIR}
33
	@${MKDIR} ${DATADIR}
32
	${INSTALL_DATA} ${WRKSRC}/gonvert.glade ${DATADIR}
34
	${INSTALL_DATA} ${WRKSRC}/gonvert.glade ${DATADIR}
33
	@${MKDIR} ${DATADIR}/pixmaps
35
	@${MKDIR} ${DATADIR}/pixmaps
34
	${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${DATADIR}/pixmaps
36
	${INSTALL_DATA} ${WRKSRC}/pixmaps/gonvert_picture.png \
37
		${DATADIR}/pixmaps
35
.if !defined(NOPORTDOCS)
38
.if !defined(NOPORTDOCS)
36
	@${MKDIR} ${DOCSDIR}
39
	@${MKDIR} ${DOCSDIR}
37
.for file in README CHANGELOG FAQ README THANKS TODO
40
.for file in README CHANGELOG FAQ README THANKS TODO
(-)misc/gonvert/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (gonvert-0.2.01.tar.gz) = 9996b6a16ea0b83eba3c6cecda2fe628
1
MD5 (gonvert-0.2.05.tar.gz) = 049288a60291da767f7cacd26ae826ba
2
SIZE (gonvert-0.2.01.tar.gz) = 109866
2
SIZE (gonvert-0.2.05.tar.gz) = 73211
(-)misc/gonvert/files/patch-gonvert (-17 lines)
Lines 1-17 Link Here
1
--- gonvert.orig	Mon Jan 26 02:22:42 2004
2
+++ gonvert	Mon Jan 26 13:22:52 2004
3
@@ -1,4 +1,4 @@
4
-#!/usr/bin/python
5
+#!/usr/bin/env python
6
 # -*- coding: UTF8 -*-
7
 version = "0.1.7"   # keep version information here since Makefile needs it
8
 
9
@@ -655,7 +655,7 @@
10
 	homepath=''
11
 else:
12
 	#look for it in the installed directory
13
-	homepath=sys.path[0] + '/../lib/gonvert-'+version + "/"
14
+	homepath=sys.path[0] + '/../share/gonvert' "/"
15
 
16
 gladefile=homepath+'gonvert.glade'
17
 
(-)misc/gonvert/pkg-plist (-4 / +3 lines)
Lines 4-14 Link Here
4
%%PORTDOCS%%%%DOCSDIR%%/README
4
%%PORTDOCS%%%%DOCSDIR%%/README
5
%%PORTDOCS%%%%DOCSDIR%%/THANKS
5
%%PORTDOCS%%%%DOCSDIR%%/THANKS
6
%%PORTDOCS%%%%DOCSDIR%%/TODO
6
%%PORTDOCS%%%%DOCSDIR%%/TODO
7
share/gnome/apps/Utilities/gonvert.desktop
7
share/gnome/applications/gonvert.desktop
8
share/gnome/pixmaps/gonvert_icon.png
8
share/gnome/pixmaps/gonvert.png
9
%%DATADIR%%/gonvert.glade
9
%%DATADIR%%/gonvert.glade
10
%%DATADIR%%/pixmaps/gonvert.png
10
%%DATADIR%%/pixmaps/gonvert_picture.png
11
%%DATADIR%%/pixmaps/gonvert_icon.png
12
@dirrm %%DATADIR%%/pixmaps
11
@dirrm %%DATADIR%%/pixmaps
13
@dirrm %%DATADIR%%
12
@dirrm %%DATADIR%%
14
%%PORTDOCS%%@dirrm %%DOCSDIR%%
13
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 69003