Skip to content
Permalink
Browse files

Clean up some post-configure arguments to avoid users to manually cha…

…nge icons's path in Bluefish's preferencesPortfile

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@4104 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Matt Anton
Matt Anton committed Dec 1, 2003
1 parent df6a5bc commit 722169767562830a557c8f47f1d6fec5f162d0b1
Showing with 7 additions and 12 deletions.
  1. +7 −12 editors/bluefish/Portfile
@@ -1,9 +1,9 @@
# $Id: Portfile,v 1.2 2003/11/30 01:44:34 matt Exp $
# $Id: Portfile,v 1.3 2003/12/01 20:29:21 matt Exp $

PortSystem 1.0
name bluefish
version 0.12
revision 1
revision 2
categories editors www
platforms darwin
maintainers matt@opendarwin.org
@@ -36,19 +36,14 @@ configure.args --mandir=${prefix}/share/man \
--with-icon-path=${prefix}/share/pixmaps \
--without-PACKAGE

post-configure { reinplace "s|/opt/local/share/pixmaps|${destroot}${prefix}/share/pixmaps|g" ${worksrcpath}/Makefile
reinplace "s|/opt/local|${destroot}${prefix}|g" ${worksrcpath}/Makefile ${worksrcpath}/data/Makefile
reinplace "s|/usr/share/gnome/apps|${destroot}${prefix}/share/gnome/apps|" ${worksrcpath}/data/Makefile
post-configure { reinplace "s|/usr/share/gnome/apps|${destroot}${prefix}/share/gnome/apps|" ${worksrcpath}/data/Makefile
reinplace "s|/usr/share/applications|${destroot}${prefix}/share/applications|" ${worksrcpath}/data/Makefile
reinplace "s|prefix = /opt/local|prefix = ${destroot}${prefix}|" ${worksrcpath}/src/Makefile
reinplace "s|/man/man1|/share/man/man1|" ${worksrcpath}/src/Makefile
}

destroot.destdir prefix=${destroot}${prefix} \
mandir=${destroot}${prefix}/share/man
destroot.destdir prefix=${destroot}${prefix}

pre-destroot { system "install -d -o root -m 755 '${destroot}${prefix}/share/pixmaps'"
system "install -d -o root -m 755 '${destroot}${prefix}/share/gnome/apps'"
system "install -d -o root -m 755 '${destroot}${prefix}/share/applications'"
pre-destroot { system "install -d -m 755 '${destroot}${prefix}/share/pixmaps'"
system "install -d -m 755 '${destroot}${prefix}/share/gnome/apps'"
system "install -d -m 755 '${destroot}${prefix}/share/applications'"
}

0 comments on commit 7221697

Please sign in to comment.
You can’t perform that action at this time.