Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2002 15:04:49 -0700 (PDT)
From:      KATO Tsuguru <tkato@prontomail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/38705: Update port: archivers/fileroller
Message-ID:  <200205292204.g4TM4nHo033370@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         38705
>Category:       ports
>Synopsis:       Update port: archivers/fileroller
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 29 15:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.5-RELEASE i386
>Organization:
>Environment:
>Description:
- Add USE_X_PREFIX
- Conform to GNOME directory hierarchy
- Do not install GNU GPL doc

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/archivers/fileroller/Makefile archivers/fileroller/Makefile
--- /usr/ports/archivers/fileroller/Makefile	Sun May 19 06:52:55 2002
+++ archivers/fileroller/Makefile	Tue May 28 03:22:02 2002
@@ -19,16 +19,22 @@
 		rar:${PORTSDIR}/archivers/rar \
 		lzop:${PORTSDIR}/archivers/lzop
 
+USE_X_PREFIX=	yes
 USE_GNOME=	yes
 GNU_CONFIGURE=	yes
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
+		LDFLAGS="-L${LOCALBASE}/lib"
 
-DOCS=	AUTHORS COPYING NEWS README TODO
+post-patch:
+	@${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${PERL} -pi -e \
+		's|\$$\(datadir\)/gnome/apps|\$$\(datadir\)/apps|g ; \
+		 s|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|g'
 
-.if !defined(NOPORTDOCS)
 post-install:
-	${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}
-.for f in ${DOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${DOCSDIR}
+.for f in AUTHORS NEWS README TODO
+	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
 .endfor
 .endif
 
diff -urN /usr/ports/archivers/fileroller/pkg-plist archivers/fileroller/pkg-plist
--- /usr/ports/archivers/fileroller/pkg-plist	Sun May 19 06:52:55 2002
+++ archivers/fileroller/pkg-plist	Tue May 28 02:36:37 2002
@@ -1,5 +1,10 @@
 bin/file-roller
 bin/fr-document-viewer
+%%PORTDOCS%%share/doc/fileroller/AUTHORS
+%%PORTDOCS%%share/doc/fileroller/NEWS
+%%PORTDOCS%%share/doc/fileroller/README
+%%PORTDOCS%%share/doc/fileroller/TODO
+share/gnome/apps/Utilities/file-roller.desktop
 share/gnome/application-registry/file-roller.applications
 share/gnome/file-roller/glade/file_roller.glade
 share/gnome/file-roller/glade/file_roller_prop.glade
@@ -15,33 +20,23 @@
 share/gnome/file-roller/scripts/Extract_in_a_subfolder
 share/gnome/file-roller/scripts/Extract_to
 share/gnome/file-roller/scripts/README
-share/gnome/gnome/apps/Utilities/file-roller.desktop
-share/gnome/locale/de/LC_MESSAGES/file-roller.mo
-share/gnome/locale/es/LC_MESSAGES/file-roller.mo
-share/gnome/locale/fr_FR/LC_MESSAGES/file-roller.mo
-share/gnome/locale/it/LC_MESSAGES/file-roller.mo
-share/gnome/locale/ja/LC_MESSAGES/file-roller.mo
-share/gnome/locale/ko/LC_MESSAGES/file-roller.mo
-share/gnome/locale/nl/LC_MESSAGES/file-roller.mo
-share/gnome/locale/no/LC_MESSAGES/file-roller.mo
-share/gnome/locale/pl/LC_MESSAGES/file-roller.mo
-share/gnome/locale/pt_BR/LC_MESSAGES/file-roller.mo
-share/gnome/locale/ru/LC_MESSAGES/file-roller.mo
-share/gnome/locale/sv/LC_MESSAGES/file-roller.mo
 share/gnome/mime-info/file-roller.keys
 share/gnome/mime-info/file-roller.mime
 share/gnome/pixmaps/file-roller.png
-@dirrm share/gnome/file-roller/glade
-@dirrm share/gnome/file-roller/icons
+share/locale/de/LC_MESSAGES/file-roller.mo
+share/locale/es/LC_MESSAGES/file-roller.mo
+share/locale/fr_FR/LC_MESSAGES/file-roller.mo
+share/locale/it/LC_MESSAGES/file-roller.mo
+share/locale/ja/LC_MESSAGES/file-roller.mo
+share/locale/ko/LC_MESSAGES/file-roller.mo
+share/locale/nl/LC_MESSAGES/file-roller.mo
+share/locale/no/LC_MESSAGES/file-roller.mo
+share/locale/pl/LC_MESSAGES/file-roller.mo
+share/locale/pt_BR/LC_MESSAGES/file-roller.mo
+share/locale/ru/LC_MESSAGES/file-roller.mo
+share/locale/sv/LC_MESSAGES/file-roller.mo
 @dirrm share/gnome/file-roller/scripts
+@dirrm share/gnome/file-roller/icons
+@dirrm share/gnome/file-roller/glade
 @dirrm share/gnome/file-roller
-@unexec rmdir %D/share/gnome/application-registry 2>/dev/null || true
-@unexec rmdir %D/share/locale/*/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/* 2>/dev/null || true
-@unexec rmdir %D/share/locale 2>/dev/null || true
-%%PORTDOCS%%share/doc/fileroller/AUTHORS
-%%PORTDOCS%%share/doc/fileroller/COPYING
-%%PORTDOCS%%share/doc/fileroller/NEWS
-%%PORTDOCS%%share/doc/fileroller/README
-%%PORTDOCS%%share/doc/fileroller/TODO
 %%PORTDOCS%%@dirrm share/doc/fileroller

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205292204.g4TM4nHo033370>