Date: Wed, 23 Jun 2004 14:33:47 +0200 From: Pav Lucistnik <pav@FreeBSD.org> To: gnome@FreeBSD.org Subject: third-party shared-mime-info installation Message-ID: <1087994026.60089.28.camel@pav.hide.vol.cz>
next in thread | raw e-mail | index | archive | help
--=-wdL0FlZVhrarlrQF6uW1 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, one of my ports is installing his own data to shared-mime-info database. The problem is that the port is installing under /usr/X11R6 (it's a GNOME app), but the mime database is in /usr/local/share/mime. What's the preferred way to handle this? Let the port install files out of it's prefix, or should we hack shared-mime-info to look to maintain two databases (one in /usr/local, second in /usr/X11R6)? Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/pcvs/ports/science/gchempaint/Makefile,v retrieving revision 1.16 diff -a -u -r1.16 Makefile --- Makefile 29 May 2004 11:48:19 -0000 1.16 +++ Makefile 23 Jun 2004 12:27:34 -0000 @@ -5,7 +5,7 @@ # $FreeBSD: ports/science/gchempaint/Makefile,v 1.16 2004/05/29 11:48:19 p= av Exp $ =20 PORTNAME=3D gchempaint -PORTVERSION=3D 0.4.4 +PORTVERSION=3D 0.4.5 CATEGORIES=3D science MASTER_SITES=3D ${MASTER_SITE_SAVANNAH} MASTER_SITE_SUBDIR=3D ${PORTNAME} @@ -20,6 +20,11 @@ USE_GNOME=3D gnomehack gnomeprefix intlhack libgnomeprintui libgnomeui lth= ack USE_GMAKE=3D yes USE_LIBTOOL_VER=3D13 +USE_REINPLACE=3D yes CONFIGURE_ENV=3D CPPFLAGS=3D"-I${LOCALBASE}/include" LIBS=3D"-L${LOCALBASE= }/lib" + +post-patch: + @${REINPLACE_CMD} -e 's|$$(datadir)/mime/|${LOCALBASE}/share/mime/|' ${WR= KSRC}/Makefile.in + @${REINPLACE_CMD} -e 's|$$(datadir)/mime$$|${LOCALBASE}/share/mime|' ${WR= KSRC}/Makefile.in =20 .include <bsd.port.mk> Index: distinfo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/pcvs/ports/science/gchempaint/distinfo,v retrieving revision 1.10 diff -a -u -r1.10 distinfo --- distinfo 29 May 2004 11:48:19 -0000 1.10 +++ distinfo 23 Jun 2004 12:27:34 -0000 @@ -1,2 +1,2 @@ -MD5 (gchempaint-0.4.4.tar.bz2) =3D 1d877cff475eda565e8db4a67f4f7c02 -SIZE (gchempaint-0.4.4.tar.bz2) =3D 619320 +MD5 (gchempaint-0.4.5.tar.bz2) =3D b074f844b044868ee999eaaf680ba975 +SIZE (gchempaint-0.4.5.tar.bz2) =3D 622075 Index: pkg-plist =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/pcvs/ports/science/gchempaint/pkg-plist,v retrieving revision 1.7 diff -a -u -r1.7 pkg-plist --- pkg-plist 11 Mar 2004 22:28:20 -0000 1.7 +++ pkg-plist 23 Jun 2004 12:27:34 -0000 @@ -69,3 +69,8 @@ @dirrm share/gnome/help/gchempaint @dirrm share/gnome/omf/gchempaint @unexec scrollkeeper-uninstall -q %D/share/gnome/omf/gchempaint/gchempaint= -C.omf 2>/dev/null || /usr/bin/true +@cwd %%LOCALBASE%% +share/mime/application/x-gchempaint.xml +share/mime/packages/gchempaint.xml +@exec update-mime-database %%LOCALBASE%%/share/mime +@unexec update-mime-database %%LOCALBASE%%/share/mime --=20 Pav Lucistnik <pav@oook.cz> <pav@FreeBSD.org> 42.7 percent of all statistics are made up on the spot. --=-wdL0FlZVhrarlrQF6uW1 Content-Type: application/pgp-signature; name=signature.asc Content-Description: Toto je =?iso-8859-2?Q?digit=E1ln=EC?= =?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?= =?ISO-8859-1?Q?_zpr=E1vy?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBA2XiqntdYP8FOsoIRAl6WAJoD/W0rWUQBFke5SReo4MzW1gkJMACgnEYi ZUlfoyTeSnSMBTps93Kxagg= =0nzz -----END PGP SIGNATURE----- --=-wdL0FlZVhrarlrQF6uW1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1087994026.60089.28.camel>