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

(-)./Makefile (-8 / +22 lines)
Lines 8-25 Link Here
8
8
9
PORTNAME=	gonvert
9
PORTNAME=	gonvert
10
PORTVERSION=	0.2.25
10
PORTVERSION=	0.2.25
11
PORTREVISION=	1
11
PORTREVISION=	2
12
CATEGORIES=	misc python gnome
12
CATEGORIES=	misc python gnome
13
MASTER_SITES=	http://www.unihedron.com/projects/gonvert/downloads/
13
MASTER_SITES=	http://www.unihedron.com/projects/gonvert/downloads/
14
14
15
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	nemysis@gmx.ch
16
COMMENT=	A conversion utility that allows conversion between many units
16
COMMENT=	Conversion utility that allows conversion between many units
17
18
LICENSE=	GPLv2
17
19
18
USE_GNOME=	pygtk2
20
USE_GNOME=	pygtk2
19
USE_PYTHON=	yes
21
USE_PYTHON=	yes
20
USE_GETTEXT=	yes
21
NO_BUILD=	yes
22
NO_BUILD=	yes
22
23
24
PORTDOCS=	CHANGELOG FAQ README THANKS TODO
25
26
.include <bsd.port.options.mk>
27
28
.if ${PORT_OPTIONS:MNLS}
29
USE_GETTEXT=	yes
30
PLIST_SUB+=	NLS=""
31
.else
32
PLIST_SUB+=	NLS="@comment "
33
.endif
34
23
post-patch:
35
post-patch:
24
	@${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|g ; \
36
	@${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|g ; \
25
		 s|/usr/share|${PREFIX}/share|g ; \
37
		 s|/usr/share|${PREFIX}/share|g ; \
Lines 35-48 Link Here
35
	${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${DATADIR}/pixmaps
47
	${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${DATADIR}/pixmaps
36
	@${MKDIR} ${PREFIX}/share/pixmaps
48
	@${MKDIR} ${PREFIX}/share/pixmaps
37
	${LN} -sf ${DATADIR}/pixmaps/gonvert.png ${PREFIX}/share/pixmaps
49
	${LN} -sf ${DATADIR}/pixmaps/gonvert.png ${PREFIX}/share/pixmaps
50
51
.if ${PORT_OPTIONS:MNLS}
38
	@${MKDIR} ${PREFIX}/share/locale/pl/LC_MESSAGES
52
	@${MKDIR} ${PREFIX}/share/locale/pl/LC_MESSAGES
39
	${INSTALL_DATA} ${WRKSRC}/i18n/pl_messages.gmo \
53
	${INSTALL_DATA} ${WRKSRC}/i18n/pl_messages.gmo \
40
		${PREFIX}/share/locale/pl/LC_MESSAGES/gonvert.mo
54
		${PREFIX}/share/locale/pl/LC_MESSAGES/gonvert.mo
41
.if !defined(NOPORTDOCS)
55
.endif
56
57
.if ${PORT_OPTIONS:MDOCS}
42
	@${MKDIR} ${DOCSDIR}
58
	@${MKDIR} ${DOCSDIR}
43
.for file in CHANGELOG FAQ README THANKS TODO
59
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
44
	${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
45
.endfor
46
.endif
60
.endif
47
61
48
.include <bsd.port.mk>
62
.include <bsd.port.mk>
(-)./pkg-descr (-9 / +10 lines)
Lines 1-15 Link Here
1
gonvert is a conversion utility that allows conversion between many units
1
gonvert is a conversion utility that allows conversion between many units
2
like CGS, Ancient, Imperial with many categories like length, mass,
2
like CGS, Ancient, Imperial with many categories like length, mass, numbers,
3
numbers, etc. All units converted values shown at once as you type. Easy
3
etc. All units converted values shown at once as you type. Easy to add/change
4
to add/change your own units.
4
your own units.
5
5
6
Features:
6
Features:
7
7
8
   - 38 categories, 698 units.
8
    - 51 categories, 981 units. See the entire list here.
9
   - All units converted values shown at once as you type. 
9
    - All units converted values shown at once as you type.
10
   - Descriptions for many units. 
10
    - Descriptions for many units.
11
   - Sort Units or values. 
11
    - Sort by Unit Name, Value, or Unit symbol.
12
   - Fully OPEN source so that you can add your own custom calculations
12
    - Find Units.
13
     and descriptions. 
13
    - Fully OPEN source so that you can add your own custom calculations
14
      and descriptions.
14
15
15
WWW: http://www.unihedron.com/projects/gonvert/
16
WWW: http://www.unihedron.com/projects/gonvert/
(-)./pkg-plist (-8 / +2 lines)
Lines 1-16 Link Here
1
bin/gonvert
1
bin/gonvert
2
share/applications/gonvert.desktop
2
share/applications/gonvert.desktop
3
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
4
%%PORTDOCS%%%%DOCSDIR%%/FAQ
5
%%PORTDOCS%%%%DOCSDIR%%/README
6
%%PORTDOCS%%%%DOCSDIR%%/THANKS
7
%%PORTDOCS%%%%DOCSDIR%%/TODO
8
%%DATADIR%%/gonvert.glade
3
%%DATADIR%%/gonvert.glade
9
%%DATADIR%%/pixmaps/gonvert.png
10
%%DATADIR%%/pixmaps/gonvert-icon_alternative.png
4
%%DATADIR%%/pixmaps/gonvert-icon_alternative.png
11
share/locale/pl/LC_MESSAGES/gonvert.mo
5
%%DATADIR%%/pixmaps/gonvert.png
6
%%NLS%%share/locale/pl/LC_MESSAGES/gonvert.mo
12
share/pixmaps/gonvert.png
7
share/pixmaps/gonvert.png
13
@dirrm %%DATADIR%%/pixmaps
8
@dirrm %%DATADIR%%/pixmaps
14
@dirrm %%DATADIR%%
9
@dirrm %%DATADIR%%
15
%%PORTDOCS%%@dirrm %%DOCSDIR%%
16
@dirrmtry share/applications
10
@dirrmtry share/applications

Return to bug 174082