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

(-)biology/gperiodic/Makefile (-14 / +16 lines)
Lines 6-33 Link Here
6
#
6
#
7
7
8
PORTNAME=	gperiodic
8
PORTNAME=	gperiodic
9
PORTVERSION=	1.3.3
9
PORTVERSION=	2.0.5
10
CATEGORIES=	biology
10
CATEGORIES=	biology
11
MASTER_SITES=	ftp://ftp.seul.org/pub/gperiodic/ \
11
MASTER_SITES=	http://www.acclab.helsinki.fi/~frantz/software/
12
		http://www.unixpages.org/distfiles/
13
12
14
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	Displays a periodic table of the elements
14
COMMENT=	Displays a periodic table of the elements
16
15
17
USE_X_PREFIX=	yes
16
USE_X_PREFIX=	yes
18
USE_GNOME=	gtk12
17
USE_GNOME=	gtk20
19
USE_GMAKE=	yes
18
MAKE_ARGS=	CC="${CC} ${CFLAGS}"
20
GNU_CONFIGURE=	yes
19
ALL_TARGET=	${PORTNAME}
21
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
22
		LIBS="-L${LOCALBASE}/lib"
23
20
24
MAN1=		gperiodic.1
21
post-build:
22
.for lang in da pl sv
23
	cd ${WRKSRC}/po && msgfmt -f -v -o ${lang}.mo ${lang}.po
24
.endfor
25
25
26
post-extract:
26
do-install:
27
	@${LN} -sf Makefile.in.in ${WRKSRC}/po/Makefile.in
27
	${INSTALL_PROGRAM} ${WRKSRC}/gperiodic ${PREFIX}/bin
28
28
.for lang in da pl sv
29
post-install:
29
	@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
30
	${INSTALL_MAN} ${WRKSRC}/man/gperiodic.1 ${MANPREFIX}/man/man1
30
	${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
31
		${PREFIX}/share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
32
.endfor
31
.if !defined(NOPORTDOCS)
33
.if !defined(NOPORTDOCS)
32
	@${MKDIR} ${DOCSDIR}
34
	@${MKDIR} ${DOCSDIR}
33
.for file in AUTHORS ChangeLog README
35
.for file in AUTHORS ChangeLog README
(-)biology/gperiodic/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (gperiodic-1.3.3.tar.gz) = 8b6344276252635b18572bca17aa62f6
1
MD5 (gperiodic-2.0.5.tar.gz) = 55fd28d407e4eba4fec82f36e954f693
(-)biology/gperiodic/files/patch-aa (-14 lines)
Lines 1-14 Link Here
1
--- src/gperiodic.c.orig	Wed Sep  8 22:42:48 1999
2
+++ src/gperiodic.c	Wed Dec 20 03:25:27 2000
3
@@ -484,10 +484,7 @@
4
   textdomain (PACKAGE);
5
   bindtextdomain(PACKAGE, GPERIODIC_LOCALE_DIR);
6
 
7
-  lang = getenv("LANG");
8
-  if( NULL == lang ) {
9
-    lang = "en";
10
-  }
11
+  gtk_set_locale();
12
 
13
   gtk_init(&argc,&argv);
14
 
(-)biology/gperiodic/pkg-descr (-1 / +1 lines)
Lines 2-5 Link Here
2
browse through the elements, and view detailed information about each
2
browse through the elements, and view detailed information about each
3
element.
3
element.
4
4
5
WWW: http://gperiodic.seul.org/
5
WWW: http://www.acclab.helsinki.fi/~frantz/software/gperiodic.php
(-)biology/gperiodic/pkg-plist (-11 / +7 lines)
Lines 1-12 Link Here
1
bin/gperiodic
1
bin/gperiodic
2
%%PORTDOCS%%share/doc/gperiodic/AUTHORS
2
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
3
%%PORTDOCS%%share/doc/gperiodic/ChangeLog
3
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
4
%%PORTDOCS%%share/doc/gperiodic/README
4
%%PORTDOCS%%%%DOCSDIR%%/README
5
share/locale/de/LC_MESSAGES/gperiodic.mo
5
share/locale/da/LC_MESSAGES/gperiodic.mo
6
share/locale/es/LC_MESSAGES/gperiodic.mo
6
share/locale/pl/LC_MESSAGES/gperiodic.mo
7
share/locale/fr/LC_MESSAGES/gperiodic.mo
7
share/locale/sv/LC_MESSAGES/gperiodic.mo
8
share/locale/it/LC_MESSAGES/gperiodic.mo
8
%%PORTDOCS%%@dirrm %%DOCSDIR%%
9
share/locale/nl/LC_MESSAGES/gperiodic.mo
10
share/locale/pt/LC_MESSAGES/gperiodic.mo
11
share/locale/ru/LC_MESSAGES/gperiodic.mo
12
%%PORTDOCS%%@dirrm share/doc/gperiodic

Return to bug 54899