summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Callen <abcd@gentoo.org>2011-03-15 23:04:55 +0000
committerJonathan Callen <abcd@gentoo.org>2011-03-15 23:04:55 +0000
commit04db0c6d530274b8958c5c781685d4e40f2e26c7 (patch)
tree66ef0561a9cb1d38752c9c958a96cb45505a8c51 /x11-misc/xorg-cf-files/xorg-cf-files-1.0.4.ebuild
parentKill old-style virtual/quicktime, bug 358857. (diff)
downloadgentoo-2-04db0c6d530274b8958c5c781685d4e40f2e26c7.tar.gz
gentoo-2-04db0c6d530274b8958c5c781685d4e40f2e26c7.tar.bz2
gentoo-2-04db0c6d530274b8958c5c781685d4e40f2e26c7.zip
Add prefix support and keywords
(Portage version: 2.2.0_alpha23_p5/cvs/Linux i686)
Diffstat (limited to 'x11-misc/xorg-cf-files/xorg-cf-files-1.0.4.ebuild')
-rw-r--r--x11-misc/xorg-cf-files/xorg-cf-files-1.0.4.ebuild17
1 files changed, 12 insertions, 5 deletions
diff --git a/x11-misc/xorg-cf-files/xorg-cf-files-1.0.4.ebuild b/x11-misc/xorg-cf-files/xorg-cf-files-1.0.4.ebuild
index f20e457c395c..8407e24b3139 100644
--- a/x11-misc/xorg-cf-files/xorg-cf-files-1.0.4.ebuild
+++ b/x11-misc/xorg-cf-files/xorg-cf-files-1.0.4.ebuild
@@ -1,21 +1,28 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/xorg-cf-files/xorg-cf-files-1.0.4.ebuild,v 1.7 2011/03/05 18:07:54 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/xorg-cf-files/xorg-cf-files-1.0.4.ebuild,v 1.8 2011/03/15 23:04:55 abcd Exp $
EAPI=3
inherit xorg-2
DESCRIPTION="Old Imake-related build files"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.0.2-solaris-prefix.patch
+)
+
src_install() {
xorg-2_src_install
- echo "#define ManDirectoryRoot /usr/share/man" >> ${D}/usr/$(get_libdir)/X11/config/host.def
- sed -i -e "s/LibDirName *lib$/LibDirName $(get_libdir)/" "${D}"/usr/$(get_libdir)/X11/config/Imake.tmpl || die "failed libdir sed"
-
+ echo "#define ManDirectoryRoot ${EPREFIX}/usr/share/man" >> ${ED}/usr/$(get_libdir)/X11/config/host.def
+ sed -i -e "s/LibDirName *lib$/LibDirName $(get_libdir)/" "${ED}"/usr/$(get_libdir)/X11/config/Imake.tmpl || die "failed libdir sed"
+ sed -i -e "s|LibDir Concat(ProjectRoot,/lib/X11)|LibDir Concat(ProjectRoot,/$(get_libdir)/X11)|" ${ED}/usr/$(get_libdir)/X11/config/X11.tmpl || die "failed libdir sed"
+ sed -i -e "s|\(EtcX11Directory \)\(/etc/X11$\)|\1${EPREFIX}\2|" ${ED}/usr/$(get_libdir)/X11/config/X11.tmpl || die "failed etcx11dir sed"
+ sed -i -e "/# define Solaris64bitSubdir/d" ${ED}/usr/$(get_libdir)/X11/config/sun.cf
+ sed -i -e 's/-DNOSTDHDRS//g' ${ED}/usr/$(get_libdir)/X11/config/sun.cf
}