ports/114767: [patch] Make graphics/gimp-app-devel install "default binaries"

Henrik Brix Andersen henrik at brixandersen.dk
Fri Jul 20 12:10:02 UTC 2007


>Number:         114767
>Category:       ports
>Synopsis:       [patch] Make graphics/gimp-app-devel install "default binaries"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 20 12:10:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Henrik Brix Andersen
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
pil.dk
>Environment:
System: FreeBSD lothlorien.brixandersen.dk 7.0-CURRENT FreeBSD 7.0-CURRENT #55: Fri Jul 20 01:36:09 CEST 2007 root at lothlorien.brixandersen.dk:/usr/obj/usr/src/sys/LOTHLORIEN i386


	
>Description:
Since graphics/gimp-app-devel already conflicts with both
graphics/gimp1 and graphics/gimp-app it might as well install "default
binaries" - meaning create symlinks for gimp -> gimp-2.3 etc.

	
>How-To-Repeat:
# cd /usr/ports/graphics/gimp-devel
# make install clean
$ gimp
gimp: Command not found.

	
>Fix:

The patch below adds '--enable-default-binary' to the configure
call. It also utilizes $MLINKS for handling the man page symlinks
(including the existing gimp-console-2.3.1 -> gimp-2.3.1 symlink).

	

--- gimp-app-devel.diff begins here ---
diff -urp /usr/ports/graphics/gimp-app-devel/Makefile graphics/gimp-app-devel/Makefile
--- /usr/ports/graphics/gimp-app-devel/Makefile	2007-06-13 11:25:32.000000000 +0200
+++ graphics/gimp-app-devel/Makefile	2007-07-20 13:26:51.000000000 +0200
@@ -8,6 +8,7 @@
 
 PORTNAME=	gimp-app
 PORTVERSION=	2.3.18
+PORTREVISION=	1
 PORTEPOCH?=	1
 CATEGORIES?=	graphics gnome
 MASTER_SITES=	ftp://ftp.gimp.org/pub/%SUBDIR%/ \
@@ -50,7 +51,8 @@ CONFIGURE_ARGS?=--disable-perl \
 		--without-print \
 		--disable-python \
 		--with-desktop-dir=${PREFIX}/share \
-		--docdir=${PREFIX}/share/doc/gimp
+		--docdir=${PREFIX}/share/doc/gimp \
+		--enable-default-binary
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
 		GIMP_THREAD_LIBS=${PTHREAD_LIBS}
@@ -78,6 +80,11 @@ CONFLICTS=	gimp-1.* gimp-app-[0-9]*
 
 MAN1+=	gimp-2.3.1 gimp-remote-2.3.1 gimptool-2.0.1
 MAN5+=	gimprc-2.3.5
+MLINKS=	gimp-2.3.1 gimp.1 \
+	gimp-2.3.1 gimp-console-2.3.1 \
+	gimp-console-2.3.1 gimp-console.1 \
+	gimp-remote-2.3.1 gimp-remote.1 \
+	gimprc-2.3.5 gimprc.5
 
 .if defined(WITHOUT_RSVG)
 CONFIGURE_ARGS+=	--without-librsvg
diff -urp /usr/ports/graphics/gimp-app-devel/pkg-plist graphics/gimp-app-devel/pkg-plist
--- /usr/ports/graphics/gimp-app-devel/pkg-plist	2007-06-13 11:25:32.000000000 +0200
+++ graphics/gimp-app-devel/pkg-plist	2007-07-20 13:05:40.000000000 +0200
@@ -1,5 +1,8 @@
+bin/gimp
 bin/gimp-2.3
+bin/gimp-console
 bin/gimp-console-2.3
+bin/gimp-remote
 bin/gimp-remote-2.3
 bin/gimptool-2.0
 etc/gimp/2.2/controllerrc
@@ -251,8 +254,6 @@ libdata/pkgconfig/gimp-2.0.pc
 libdata/pkgconfig/gimpthumb-2.0.pc
 libdata/pkgconfig/gimpui-2.0.pc
 libexec/gimp/2.2/environ/default.env
- at comment this is a simlink to gimp-2.3.1, so put it here because it gives me trouble with MAN1.
-man/man1/gimp-console-2.3.1
 libexec/gimp/2.2/interpreters/default.interp
 libexec/gimp/2.2/modules/libcdisplay_colorblind.a
 libexec/gimp/2.2/modules/libcdisplay_colorblind.la
--- gimp-app-devel.diff ends here ---


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



More information about the freebsd-ports-bugs mailing list