ports/118678: [patch] unbreak finance/gnofin fix objformat handling + adopt maintainship

Pietro Cerutti gahr at gahr.ch
Thu Dec 13 19:30:02 UTC 2007


>Number:         118678
>Category:       ports
>Synopsis:       [patch] unbreak finance/gnofin fix objformat handling + adopt maintainship
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 13 19:30:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Pietro Cerutti
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:


System: FreeBSD 8.0-CURRENT #17: Thu Dec 13 11:23:40 CET 2007
    root at gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034



>Description:


The patch below:

- fixes objformat handling
- fixes a missing include
- sets maintainship to me


>How-To-Repeat:





>Fix:


--- _gnofin.diff begins here ---
--- Makefile.orig	2007-12-13 19:39:33.000000000 +0100
+++ Makefile	2007-12-13 20:18:00.000000000 +0100
@@ -12,15 +12,23 @@
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	gahr at gahr.ch
 COMMENT=	Light-weight GNOME based financial management program
 
 USE_X_PREFIX=	yes
 USE_GNOME=	gnomehack gnomelibs gnomeprefix
 USE_GMAKE=	yes
+USE_AUTOTOOLS=	libtool:15
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT=yes
+PLIST_SUB=	NLS=""
+.else
+CONFIGURE_ARGS=	--disable-nls
+PLIST_SUB=	NLS="@comment "
+.endif
 
 MAN1=		gnofin.1
 
@@ -32,11 +40,10 @@
 			${WRKSRC}/configure
 	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
 		's|_la_LDFLAGS =|_la_LDFLAGS = -avoid-version|g'
+	@${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \
+		${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|%%%GNOFIN_LIBDIR%%%|${PREFIX}/lib/gnofin/plugins|g' \
+		${WRKSRC}/src/Makefile.am
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700029
-BROKEN=		Incorrect pkg-plist (bad objformat handling)
-.endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
--- /dev/null	2007-12-13 20:18:59.000000000 +0100
+++ files/patch-src_common.h	2007-12-13 19:51:16.000000000 +0100
@@ -0,0 +1,11 @@
+--- src/common.h.orig	2007-12-13 19:50:36.000000000 +0100
++++ src/common.h	2007-12-13 19:50:59.000000000 +0100
+@@ -24,6 +24,8 @@
+ # include <config.h>
+ #endif
+ 
++#include <string.h>
++
+ #include <glib.h>
+ #include <libgnome/gnome-defs.h>
+ #include <libgnome/gnome-i18n.h>  /* defines _() and N_() macros */
--- pkg-plist.orig	2007-12-13 19:45:26.000000000 +0100
+++ pkg-plist	2007-12-13 19:45:45.000000000 +0100
@@ -24,8 +24,8 @@
 lib/gnofin/plugins/libtext.la
 lib/gnofin/plugins/libtext.so
 share/gnome/apps/Applications/gnofin.desktop
-share/locale/cs/LC_MESSAGES/gnofin.mo
-share/locale/fr/LC_MESSAGES/gnofin.mo
-share/locale/pt_BR/LC_MESSAGES/gnofin.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/gnofin.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gnofin.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/gnofin.mo
 @dirrm lib/gnofin/plugins
 @dirrm lib/gnofin
--- _gnofin.diff ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list