summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarty E. Plummer <hanetzer@startmail.com>2018-07-27 18:32:15 -0500
committerMatt Turner <mattst88@gentoo.org>2018-07-27 17:38:26 -0700
commit30e1117f8b6bf64711572d5539fa4f9d61b8a5c9 (patch)
tree4afb005d3744813cf0688898023c89ec0729945c /x11-misc
parentx11-misc/xorg-cf-files: adjust patch to be -p1 applicable (diff)
downloadgentoo-30e1117f8b6bf64711572d5539fa4f9d61b8a5c9.tar.gz
gentoo-30e1117f8b6bf64711572d5539fa4f9d61b8a5c9.tar.bz2
gentoo-30e1117f8b6bf64711572d5539fa4f9d61b8a5c9.zip
x11-misc/xorg-cf-files: port to EAPI 7
Package-Manager: Portage-2.3.41, Repoman-2.3.9
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/xorg-cf-files/xorg-cf-files-1.0.6-r1.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/x11-misc/xorg-cf-files/xorg-cf-files-1.0.6-r1.ebuild b/x11-misc/xorg-cf-files/xorg-cf-files-1.0.6-r1.ebuild
new file mode 100644
index 000000000000..0ea092a0e0b4
--- /dev/null
+++ b/x11-misc/xorg-cf-files/xorg-cf-files-1.0.6-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Old Imake-related build files"
+HOMEPAGE="https://www.x.org/wiki/ https://cgit.freedesktop.org/"
+SRC_URI="mirror://xorg/util/${P}.tar.bz2
+ https://dev.gentoo.org/~mattst88/distfiles/${PN}-1.0.6-solaris-prefix.patch.bz2"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+BDEPEND="
+ virtual/pkgconfig
+ app-arch/bzip2
+"
+RDEPEND=""
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${WORKDIR}"/${PN}-1.0.6-solaris-prefix.patch
+)
+
+src_configure() {
+ local econfargs=(
+ --disable-selective-werror
+ )
+
+ econf "${econfargs[@]}"
+}
+
+src_install() {
+ default
+ echo "#define ManDirectoryRoot ${EPREFIX%/}/usr/share/man" >> \
+ "${ED%/}"/usr/$(get_libdir)/X11/config/host.def || die
+ 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 || die
+ sed -i -e 's/-DNOSTDHDRS//g' \
+ "${ED%/}"/usr/$(get_libdir)/X11/config/sun.cf || die
+
+ sed -r -i -e "s|LibDirName[[:space:]]+lib.*$|LibDirName $(get_libdir)|" \
+ "${ED%/}"/usr/$(get_libdir)/X11/config/linux.cf || die "failed libdir sed"
+ sed -r -i -e "s|SystemUsrLibDir[[:space:]]+/usr/lib.*$|SystemUsrLibDir /usr/$(get_libdir)|" \
+ "${ED%/}"/usr/$(get_libdir)/X11/config/linux.cf || die "failed libdir sed"
+ sed -r -i -e "s|TkLibDir[[:space:]]+/usr/lib.*$|TkLibDir /usr/$(get_libdir)|" \
+ "${ED%/}"/usr/$(get_libdir)/X11/config/linux.cf || die "failed libdir sed"
+}