Tons of code cleanups, again thanks to mr_bones_. There are a few more left in the...
authorDonnie Berkholz <dberkholz@gentoo.org>
Tue, 19 Oct 2004 08:31:27 +0000 (08:31 +0000)
committerDonnie Berkholz <dberkholz@gentoo.org>
Tue, 19 Oct 2004 08:31:27 +0000 (08:31 +0000)
x11-base/xorg-x11/ChangeLog
x11-base/xorg-x11/Manifest
x11-base/xorg-x11/xorg-x11-6.8.0-r2.ebuild

index 73d2ed519caa93895b7b03e80ecbd1ae91683415..bf6f4a7bf5403a6a0e475fc2ff2b5dac20908aa2 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for x11-base/xorg-x11
 # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-x11/ChangeLog,v 1.167 2004/10/19 08:00:00 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-x11/ChangeLog,v 1.168 2004/10/19 08:31:27 spyderous Exp $
+
+  19 Oct 2004; Donnie Berkholz <spyderous@gentoo.org>;
+  xorg-x11-6.8.0-r2.ebuild:
+  Tons of code cleanups, again thanks to mr_bones_. There are a few more left in
+  the TODO list.
 
   19 Oct 2004; Donnie Berkholz <spyderous@gentoo.org>;
   xorg-x11-6.8.0-r2.ebuild:
index 6e1e079106312a94072726fbdaa2a527d939480d..3fe203bb300733a53d991796a27821be92973384 100644 (file)
@@ -1,8 +1,8 @@
 MD5 36a69eed0e585f3dcf096cc82ac54575 metadata.xml 230
-MD5 fce9fef35d73d83520bfbfd5b7d26613 xorg-x11-6.8.0-r2.ebuild 43675
+MD5 2d6e62214cf2b4d04718afdd3c7f6e94 xorg-x11-6.8.0-r2.ebuild 43819
 MD5 ca34ddd369d94ea86b0774e029f54efb xorg-x11-6.7.0-r2.ebuild 38072
 MD5 c81b82b9a07e0975156358918886607e xorg-x11-6.8.0-r1.ebuild 41319
-MD5 c044b56f2a58010a05e88c10f10ebb78 ChangeLog 36717
+MD5 877a4bcc9d9a3a7c5d959263bd71fa74 ChangeLog 36899
 MD5 5f6772219f532c3baf3fb3ceecf1ab65 files/digest-xorg-x11-6.8.0-r2 906
 MD5 a3314fbdc270d7d84ea14fd477b8d048 files/digest-xorg-x11-6.7.0-r2 904
 MD5 70facbdb85b7ef2bc9b9b702442eda7e files/digest-xorg-x11-6.8.0-r1 908
index ade860b420529a1c67a832a792b9dbaa9934458a..b3271c44a64c234d489ee80e80a3ab09099d381e 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-x11/xorg-x11-6.8.0-r2.ebuild,v 1.24 2004/10/19 08:00:00 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-x11/xorg-x11-6.8.0-r2.ebuild,v 1.25 2004/10/19 08:31:27 spyderous Exp $
 
 # Set TDFX_RISKY to "yes" to get 16-bit, 1024x768 or higher on low-memory
 # voodoo3 cards.
 #                      - Move everything inside to /usr/lib while retaining its MD5 so
 #                              it will still be uninstalled when portage follows the symlink.
 #                              Note: A simple $(mv) does this. Do in pkg_preinst().
+#              Combine find loops for "Creating fonts.scale files," "Generating
+#                      fonts.dir files and "Generating Xft cache"
+#              Mr_Bones_ the loop in pkg_postinst for removing Compose can probably
+#                      be one line of bash expansion like rm -f ${ROOT}/usr/$(get_libdir)/
+#                      X11/locale/{ja*|ko*|zh*}/Compose
 #   TARGET: 6.8.0-r3
 #              Same for /usr/X11R6/include
 #   TARGET: 6.8.0-r4
@@ -661,9 +666,7 @@ src_unpack() {
                do
                        if [ -f ${x} ]
                        then
-                               cp ${x} ${x}.orig
-                               grep -iv 'Load[[:space:]]*"\(pex5\|xie\)"' ${x}.orig > ${x}
-                               rm -f ${x}.orig
+                               sed -i '/Load[[:space:]]*"\(pex5\|xie\)"/d' ${x}
                        fi
                done
        fi
@@ -751,7 +754,7 @@ compose_files_setup() {
                sed -i \
                        -e 's/\(<dead_diaeresis> <space>\).*$/\1 : "\\"" quotedbl/' \
                        -e "s/\(<dead_acute> <space>\).*$/\1 : \"'\" apostrophe/" \
-                       ${i}
+                       ${i} || eerror "sed ${i} failed"
        done
 }
 
@@ -767,11 +770,8 @@ etc_files_install() {
        # new display manager script
        doexe ${FILES_DIR}/startDM.sh
        exeinto /etc/X11/Sessions
-       local x
-       for x in ${FILES_DIR}/Sessions/*
-       do
-               [ -f ${x} ] && doexe ${x}
-       done
+       # doexe skips directories, so this should be safe
+       doexe ${FILES_DIR}/Sessions/*
        insinto /etc/env.d
        doins ${FILES_DIR}/10xorg
        insinto /etc/X11/xinit
@@ -996,17 +996,16 @@ src_install() {
        do
                if [ -f ${x} ]
                then
-                       fperms 0755 $(echo ${x} | sed -e "s|${D}||")
+                       fperms 0755 ${x/${D}}
                fi
        done
 
        # Fix permissions on modules ...
-       for x in $(find ${D}/usr/$(get_libdir)/modules -name '*.o') \
-                $(find ${D}/usr/$(get_libdir)/modules -name '*.so')
+       for x in $(find ${D}/usr/$(get_libdir)/modules -name '*.o' -o -name '*.so')
        do
                if [ -f ${x} ]
                then
-                       fperms 0755 $(echo ${x} | sed -e "s|${D}||")
+                       fperms 0755 ${x/${D}}
                fi
        done
 
@@ -1015,7 +1014,8 @@ src_install() {
        ebegin "Fixing $(get_libdir)/X11/config/host.def"
                cp ${D}/usr/$(get_libdir)/X11/config/host.def ${T}
                awk '!/OptimizedCDebugFlags|OptimizedCplusplusDebugFlags|GccWarningOptions/ {print $0}' \
-                       ${T}/host.def > ${D}/usr/$(get_libdir)/X11/config/host.def
+                       ${T}/host.def > ${D}/usr/$(get_libdir)/X11/config/host.def \
+                       || eerror "Munging host.def failed"
                # theoretically, /usr/lib/X11/config is a possible candidate for
                # config file management. If we find that people really worry about imake
                # stuff, we may add it.  But for now, we leave the dir unprotected.
@@ -1059,8 +1059,7 @@ src_install() {
        dosym ../../usr/X11R6/bin/Xorg /etc/X11/X
 
        # Fix perms
-       fperms 755 /usr/$(get_libdir)/X11/xkb/geometry/sgi
-       fperms 755 /usr/X11R6/bin/dga
+       fperms 755 /usr/$(get_libdir)/X11/xkb/geometry/sgi /usr/X11R6/bin/dga
 
        compose_files_setup
 
@@ -1074,7 +1073,8 @@ src_install() {
 
                        for x in ${D}/usr/share/fonts/encodings/{.,large}/*.enc
                        do
-                               [ -f "${x}" ] && gzip -9 -f ${x}
+                               [ -f "${x}" ] && gzip -9 -f ${x} \
+                                       || eerror "gzipping ${x} failed"
                        done
                eend 0
        fi
@@ -1083,10 +1083,11 @@ src_install() {
        then
                ebegin "gemini-koi8 fonts..."
                        cd ${WORKDIR}/ukr
-                       gunzip *.Z
-                       gzip -9 *.pcf
+                       gunzip *.Z || eerror "gunzipping gemini-koi8 fonts failed"
+                       gzip -9 *.pcf || eerror "gzipping gemini-koi8 fonts failed"
                        cd ${S}
-                       cp -a ${WORKDIR}/ukr ${D}/usr/share/fonts
+                       cp -a ${WORKDIR}/ukr ${D}/usr/share/fonts \
+                               || eerror "copying gemini-koi8 fonts failed"
                eend 0
        fi
 
@@ -1141,8 +1142,8 @@ clean_dynamic_libgl() {
 
        # make sure we do not have any stale files lying around
        # that could break things. Check old and new locations.
-       rm -f ${ROOT}/usr/X11R6/$(get_libdir)/libGL*
-       rm -f ${ROOT}/usr/$(get_libdir)/libGL*
+       rm -f ${ROOT}/usr/X11R6/$(get_libdir)/libGL* \
+               ${ROOT}/usr/$(get_libdir)/libGL*
 }
 
 pkg_preinst() {
@@ -1174,9 +1175,7 @@ pkg_preinst() {
                if [ "${G_FONTDIR}" != "CID" -a "${G_FONTDIR}" != "Speedo" ]
                then
                        find ${ROOT}/usr/share/fonts/${G_FONTDIR} -type f -name 'fonts.*' \
-                               -exec rm -f {} \;
-                       find ${ROOT}/usr/share/fonts/${G_FONTDIR} -type f -name 'encodings.dir' \
-                               -exec rm -f {} \;
+                               -o -name 'encodings.dir' -exec rm -f {} \;
                fi
        done
 
@@ -1294,6 +1293,8 @@ font_setup() {
                                fi
                        done
                eend 0
+       else
+               eerror "ttmkfdir not found. Unable to prepare TrueType fonts for use."
        fi
 
        ebegin "Generating fonts.dir files..."
@@ -1347,17 +1348,6 @@ font_setup() {
 }
 
 print_info() {
-       if use 3dfx
-       then
-               echo
-               einfo "If using a 3DFX card, and you had \"3dfx\" in your USE flags,"
-               einfo "please merge media-libs/glide-v3 if you have not done so yet"
-               einfo "by doing:"
-               einfo
-               einfo "  # emerge media-libs/glide-v3"
-               echo
-       fi
-
        echo
        einfo "Please note that the xcursors are in /usr/share/cursors/${PN}"
        einfo "Any custom cursor sets should be placed in that directory"