summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2004-04-19 04:58:51 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2004-04-19 04:58:51 +0000
commit4e3f9330c4c0e373248cedccfed3d95604dc1da4 (patch)
tree6b6064b80f6232b3525e869e2a63b4358f52d004 /x11-base
parentr6 DIE EVIL DIE DIE DIE stop molesting my xorg :( (diff)
downloadhistorical-4e3f9330c4c0e373248cedccfed3d95604dc1da4.tar.gz
historical-4e3f9330c4c0e373248cedccfed3d95604dc1da4.tar.bz2
historical-4e3f9330c4c0e373248cedccfed3d95604dc1da4.zip
Add more backwards compatibility things -- symlinks for all former font, doc and man dirs as well as autogeneration of new config files. Old locations are deprecated and will be removed in a future release.
Diffstat (limited to 'x11-base')
-rw-r--r--x11-base/xfree/ChangeLog7
-rw-r--r--x11-base/xfree/Manifest6
-rw-r--r--x11-base/xfree/xfree-4.3.0-r6.ebuild117
3 files changed, 89 insertions, 41 deletions
diff --git a/x11-base/xfree/ChangeLog b/x11-base/xfree/ChangeLog
index 7622e350c349..a1aa1acbed5f 100644
--- a/x11-base/xfree/ChangeLog
+++ b/x11-base/xfree/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for x11-base/xfree
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree/ChangeLog,v 1.323 2004/04/19 03:05:56 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree/ChangeLog,v 1.324 2004/04/19 04:58:51 spyderous Exp $
+
+ 19 Apr 2004; Donnie Berkholz <spyderous@gentoo.org>; xfree-4.3.0-r6.ebuild:
+ Add more backwards compatibility things -- symlinks for all former font, doc
+ and man dirs as well as autogeneration of new config files. Old locations are
+ deprecated and will be removed in a future release.
18 Apr 2004; Donnie Berkholz <spyderous@gentoo.org>; xfree-4.3.0-r5.ebuild:
Revert last fix, it was some one-off error.
diff --git a/x11-base/xfree/Manifest b/x11-base/xfree/Manifest
index df3a887bd647..d45ae5d7f390 100644
--- a/x11-base/xfree/Manifest
+++ b/x11-base/xfree/Manifest
@@ -1,10 +1,10 @@
-MD5 71114bfe40be20e391aeb400b8d92d6c ChangeLog 71482
MD5 e6ee387a2de6b2fea8e5a3573c48b667 metadata.xml 228
+MD5 f5f346003c9f6ddb207ff502d62aebf2 ChangeLog 71774
+MD5 2e58e65640163b9d4f34e21e2e8a8ab8 xfree-4.3.0-r6.ebuild 38006
MD5 e1fd762694b54f3bbd6c560bd6c87bdf xfree-4.3.0-r5.ebuild 35486
-MD5 5962beb1551827d1cf73857bbb656bf6 xfree-4.3.0-r6.ebuild 36826
MD5 0dae822a5b11c6ac775631b65e7ef192 xfree-4.3.99.902-r2.ebuild 31440
-MD5 7fd6e890f5d2a756eb18123975ad7f49 files/digest-xfree-4.3.0-r5 2002
MD5 22283efeb0bda201de6b574fa1ab369e files/digest-xfree-4.3.0-r6 1528
+MD5 7fd6e890f5d2a756eb18123975ad7f49 files/digest-xfree-4.3.0-r5 2002
MD5 2308a80167b398e266fc7a711c8014c6 files/digest-xfree-4.3.99.902-r2 1254
MD5 2d22ba49943c630e4299f439d3a0d4cc files/4.3.0/XftConfig 7750
MD5 c343ee3f0cbca24c7210773d483cfa15 files/4.3.0/10xfree 182
diff --git a/x11-base/xfree/xfree-4.3.0-r6.ebuild b/x11-base/xfree/xfree-4.3.0-r6.ebuild
index 769b33c888dc..c230e05fb0f5 100644
--- a/x11-base/xfree/xfree-4.3.0-r6.ebuild
+++ b/x11-base/xfree/xfree-4.3.0-r6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree/xfree-4.3.0-r6.ebuild,v 1.22 2004/04/19 00:39:55 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree/xfree-4.3.0-r6.ebuild,v 1.23 2004/04/19 04:58:51 spyderous Exp $
# TODO
# 14 Mar. 2004 <spyderous@gentoo.org>
@@ -32,6 +32,7 @@ IUSE_INPUT_DEVICES="synaptics wacom"
PATCH_VER="2.1.26.16"
FILES_VER="0.1.5"
RENDER_VER="0.8"
+# Needed for xrender.pc in addition to external libs
XRENDER_VER="0.8.4"
XFT_VER="2.1.6"
XCUR_VER="0.3.1"
@@ -661,34 +662,35 @@ src_install() {
ln -snf libXrender.so.1.2.2 libXrender.so.1
cd ${S}
- # Generate xrender.pc using 'EOF' style here document with no expansion
- # (adapted from Red Hat)
- cat <<-'EOF' > ${D}/usr/X11R6/lib/pkgconfig/xrender.pc
- prefix=/usr/X11R6
- exec_prefix=${prefix}
- libdir=${exec_prefix}/lib
- includedir=${prefix}/include
-
- Name: Xrender
- Description: X Render Library
- Version: 0.8.3
- Cflags: -I${includedir} -I/usr/X11R6/include
- Libs: -L${libdir} -lXrender -L/usr/X11R6/lib -lX11
-EOF
-
- fperms 0644 /usr/X11R6/lib/pkgconfig/xrender.pc
-
# Fix problem in xft.pc with version not being defined
sed -i "s:@VERSION@:${XFT_VER}:g" ${D}/usr/X11R6/lib/pkgconfig/xft.pc
fi
+ # Generate xrender.pc using 'EOF' style here document with no expansion
+ # (adapted from Red Hat)
+ cat <<-'EOF' > ${D}/usr/X11R6/lib/pkgconfig/xrender.pc
+prefix=/usr/X11R6
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: Xrender
+Description: X Render Library
+Version: ${XRENDER_VER}
+Cflags: -I${includedir} -I/usr/X11R6/include
+Libs: -L${libdir} -lXrender -L/usr/X11R6/lib -lX11
+EOF
+
+ fperms 0644 /usr/X11R6/lib/pkgconfig/xrender.pc
+
# These need to be in /usr/lib
insinto /usr/lib/pkgconfig
doins ${D}/usr/X11R6/lib/pkgconfig/{xcursor,xft}.pc
- if [ "${EXT_XFT_XRENDER}" = "yes" ]
- then
+# pending upstream fix
+# if [ "${EXT_XFT_XRENDER}" = "yes" ]
+# then
doins ${D}/usr/X11R6/lib/pkgconfig/xrender.pc
- fi
+# fi
# Now remove the invalid xft.pc, and co ...
rm -rf ${D}/usr/X11R6/lib/pkgconfig
@@ -703,18 +705,16 @@ EOF
make DESTDIR=${D} install || die
fi
- # Backwards compatibility so X server will still start
- # after installing fonts to /usr/share/fonts
- # if XF86Config is not edited
- # This provides the 'fixed' font
+ # Backwards compatibility for /usr/share move
+ G_FONTDIRS="100dpi 75dpi Speedo TTF Type1 encodings local misc util"
dodir /usr/X11R6/lib/X11/fonts/
- dosym ${ROOT}/usr/share/fonts/misc /usr/X11R6/lib/X11/fonts/misc
+ for G_FONTDIR in ${G_FONTDIRS}
+ do
+ dosym ${ROOT}/usr/share/fonts/${G_FONTDIR} /usr/X11R6/lib/X11/fonts/${G_FONTDIR}
+ done
- # Fix default config files after installing fonts to /usr/share/fonts
- sed -i "s:/usr/X116/lib/X11/fonts:/usr/share/fonts:g" \
- ${D}/etc/X11/XF86Config.example
- sed -i "s:/usr/X116/lib/X11/fonts:/usr/share/fonts:g" \
- ${D}/etc/X11/fs/config
+ dosym ${ROOT}/usr/share/man /usr/X11R6/man
+ dosym ${ROOT}/usr/share/doc/${PF} /usr/X11R6/lib/X11/doc
# Fix permissions on locale/common/*.so
for x in ${D}/usr/X11R6/lib/X11/locale/lib/common/*.so*
@@ -969,10 +969,56 @@ EOF
insinto /usr/share/cursors/xfree/gentoo-silver/cursors
doins ${WORKDIR}/cursors/gentoo-silver/cursors/*
+ # Remove xterm app-defaults, since we don't install xterm
+ rm ${D}/etc/X11/app-defaults/{UXTerm,XTerm,XTerm-color}
+
+ # Fix default config files after installing fonts to /usr/share/fonts
+ sed -i "s:/usr/X116/lib/X11/fonts:/usr/share/fonts:g" \
+ ${D}/etc/X11/xorg.conf.example
+ sed -i "s:/usr/X116/lib/X11/fonts:/usr/share/fonts:g" \
+ ${D}/etc/X11/fs/config
+
+ # Fix any installed config files for installing fonts to /usr/share/fonts
+ # This *needs* to be after all other installation so files aren't
+ # overwritten.
+ einfo "Preparing any installed configuration files for font move..."
+ FILES="/etc/X11/xorg.conf
+ /etc/X11/XF86Config
+ /etc/fonts/fonts.conf
+ /etc/fonts/local.conf
+ /etc/X11/fs/config"
+
+ for FILE in ${FILES}
+ do
+ if [ -e ${ROOT}${FILE} ]
+ then
+ DIR="$(dirname ${ROOT}${FILE})"
+ if [ ! -d ${T}${DIR} ]
+ then
+ mkdir -p ${T}${DIR}
+ fi
+ cp ${ROOT}${FILE} ${T}${DIR}
+ sed -i "s,/usr/X11R6/lib/X11/fonts,/usr/share/fonts,g" ${T}${FILE}
+ dodir ${DIR}
+ insinto ${DIR}
+ doins ${T}${FILE}
+ fi
+ done
}
pkg_preinst() {
+ # Get rid of deprecated directories so our symlinks in the same location
+ # work -- users shouldn't be placing fonts here so that should be fine,
+ # they should be using ~/.fonts or /usr/share/fonts. <spyderous>
+ for G_FONTDIR in ${G_FONTDIRS}
+ do
+ if [ -d ${ROOT}/usr/X11R6/lib/X11/fonts/${G_FONTDIR} ]
+ then
+ rm -rf ${ROOT}/usr/X11R6/lib/X11/fonts/${G_FONTDIR}
+ fi
+ done
+
# These changed from a directory/file to a symlink and reverse
if [ ! -L ${ROOT}/usr/X11R6/lib/X11/XftConfig ] && \
[ -f ${ROOT}/usr/X11R6/lib/X11/XftConfig ]
@@ -1215,12 +1261,9 @@ pkg_postinst() {
ewarn "Font installation location has MOVED to:"
ewarn "/usr/share/fonts"
echo
- ewarn "Edit /etc/X11/XF86Config, /etc/fonts/fonts.conf,"
- ewarn "/etc/fonts/local.conf and /etc/X11/fs/config"
- ewarn "to reflect this change."
- ewarn "One compatibility symlink to the misc fonts,"
- ewarn "including the 'fixed' font, has been provided"
- ewarn "so an emergency X server will start."
+ ewarn "Run etc-update to update your config files."
+ ewarn "Old locations for fonts, docs and man pages"
+ ewarn "are deprecated."
echo
# Try to get people to read /usr/share/fonts move