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

(-)misc/gonvert/Makefile (-9 / +19 lines)
Lines 7-14 Link Here
7
#
7
#
8
8
9
PORTNAME=	gonvert
9
PORTNAME=	gonvert
10
PORTVERSION=	0.1.5
10
PORTVERSION=	0.1.7
11
PORTREVISION=	0
12
CATEGORIES=	misc python gnome
11
CATEGORIES=	misc python gnome
13
MASTER_SITES=	http://www.unihedron.com/projects/gonvert/downloads/
12
MASTER_SITES=	http://www.unihedron.com/projects/gonvert/downloads/
14
13
Lines 17-32 Link Here
17
16
18
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2
17
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2
19
18
20
USE_REINPLACE=	yes
21
USE_PYTHON=	yes
22
USE_X_PREFIX=	yes
19
USE_X_PREFIX=	yes
20
USE_GNOME=	gnomehier
21
USE_PYTHON=	yes
23
USE_GMAKE=	yes
22
USE_GMAKE=	yes
24
NO_BUILD=	yes
23
NO_BUILD=	yes
25
24
26
post-patch:
25
do-install:
27
	@${REINPLACE_CMD} -e "s,/usr/bin/python,${PYTHON_CMD},g" ${WRKSRC}/${PORTNAME}
26
	${INSTALL_SCRIPT} ${WRKSRC}/gonvert ${PREFIX}/bin
28
	@${REINPLACE_CMD} -e "s,gnome-config,${GNOME_CONFIG},g ; \
27
	${INSTALL_DATA} ${WRKSRC}/gonvert.desktop \
29
		s,--directory,-d --mode=755,g ; \
28
		${PREFIX}/share/gnome/apps/Utilities
30
		s,install ,install -c ,g" ${WRKSRC}/Makefile
29
	${INSTALL_DATA} ${WRKSRC}/pixmaps/gonvert_icon.png \
30
		${PREFIX}/share/gnome/pixmaps
31
	@${MKDIR} ${DATADIR}
32
	${INSTALL_DATA} ${WRKSRC}/gonvert.glade ${DATADIR}
33
	@${MKDIR} ${DATADIR}/pixmaps
34
	${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${DATADIR}/pixmaps
35
.if !defined(NOPORTDOCS)
36
	@${MKDIR} ${DOCSDIR}
37
.for file in README CHANGELOG FAQ README THANKS TODO
38
	${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
39
.endfor
40
.endif
31
41
32
.include <bsd.port.mk>
42
.include <bsd.port.mk>
(-)misc/gonvert/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (gonvert-0.1.5.tar.gz) = 290b92e0219156b80fe5db5cb2659974
1
MD5 (gonvert-0.1.7.tar.gz) = 87f7d95ab46ba715b46db401872fc05c
(-)misc/gonvert/files/patch-Makefile (-41 lines)
Lines 1-41 Link Here
1
--- Makefile.orig	Wed Feb 26 21:18:18 2003
2
+++ Makefile	Thu Feb 27 00:24:14 2003
3
@@ -4,31 +4,31 @@
4
 VERSION=$(shell head -2 $(NAME) | grep version | cut -d\" -f2)
5
 
6
 #DESTDIR can be defined when calling make ie. make install DESTDIR=$RPM_BUILD_ROOT
7
-BASEDIR  = $(DESTDIR)/usr
8
+BASEDIR  = $(DESTDIR)/${PREFIX}
9
 BINDIR   = $(BASEDIR)/bin
10
 LIBDIR   = $(BASEDIR)/lib
11
 DOCDIR   = $(BASEDIR)/doc
12
 
13
-MYLIBDIR = $(LIBDIR)/$(NAME)-$(VERSION)
14
+MYLIBDIR = $(BASEDIR)/share/gnome/$(NAME)
15
 MYDOCDIR = $(DOCDIR)/$(NAME)-$(VERSION)
16
 
17
 all:
18
 
19
 
20
 install:
21
-	install -D --mode=755 $(NAME) $(BINDIR)/$(NAME)				#put the main program into the bin directory
22
+	install --mode=755 $(NAME) $(BINDIR)/$(NAME)				#put the main program into the bin directory
23
 	rm -rf $(LIBDIR)/gonvert-*						#remove old lib directories
24
 	install --directory $(MYLIBDIR)						#create directory to hold project files
25
 	install --mode=644 $(NAME).glade $(MYLIBDIR)/$(NAME).glade		#copy glade file over
26
 	install --directory $(MYLIBDIR)/pixmaps					#create pixmap directory to hold project pictures
27
 	install --mode=644 pixmaps/*.png $(MYLIBDIR)/pixmaps			#copy project specific pictures over
28
-	install --directory $(BASEDIR)/share/pixmaps				#create pixmap directory to hold gnome icon
29
-	install --mode=644 pixmaps/$(NAME)_icon.png $(BASEDIR)/share/pixmaps	#copy gnome pictures over
30
+	install --directory $(BASEDIR)/share/gnome/pixmaps				#create pixmap directory to hold gnome icon
31
+	install --mode=644 pixmaps/$(NAME)_icon.png $(BASEDIR)/share/gnome/pixmaps	#copy gnome pictures over
32
 	install --directory $(BASEDIR)/share/gnome/apps/Utilities		#create directory to hold gnome menu description
33
 	install --mode=644 $(NAME).desktop $(BASEDIR)/share/gnome/apps/Utilities #copy the gnome menu description
34
 	rm -rf $(DOCDIR)/gonvert-*						#remove old doc directories
35
-	install --directory $(MYDOCDIR) 					#create a directory that holds project documentation
36
-	install --mode=644 doc/* $(MYDOCDIR)					#copy project documentation
37
+	#install --directory $(MYDOCDIR) 					#create a directory that holds project documentation
38
+	#install --mode=644 doc/* $(MYDOCDIR)					#copy project documentation
39
 
40
 
41
 uninstall:
(-)misc/gonvert/files/patch-gonvert (+17 lines)
Line 0 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 (-5 / +11 lines)
Lines 1-8 Link Here
1
bin/gonvert
1
bin/gonvert
2
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
3
%%PORTDOCS%%%%DOCSDIR%%/FAQ
4
%%PORTDOCS%%%%DOCSDIR%%/README
5
%%PORTDOCS%%%%DOCSDIR%%/THANKS
6
%%PORTDOCS%%%%DOCSDIR%%/TODO
2
share/gnome/apps/Utilities/gonvert.desktop
7
share/gnome/apps/Utilities/gonvert.desktop
3
share/gnome/gonvert/gonvert.glade
4
share/gnome/gonvert/pixmaps/gonvert.png
5
share/gnome/gonvert/pixmaps/gonvert_icon.png
6
share/gnome/pixmaps/gonvert_icon.png
8
share/gnome/pixmaps/gonvert_icon.png
7
@dirrm share/gnome/gonvert/pixmaps
9
%%DATADIR%%/gonvert.glade
8
@dirrm share/gnome/gonvert
10
%%DATADIR%%/pixmaps/gonvert.png
11
%%DATADIR%%/pixmaps/gonvert_icon.png
12
@dirrm %%DATADIR%%/pixmaps
13
@dirrm %%DATADIR%%
14
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 61955