summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2005-12-09 15:29:38 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2005-12-09 15:29:38 +0000
commitfc7c31014eb627a755af196b9b13f999a78cc89c (patch)
tree0f3e9b64ff5936f24ae4686a786ac73e2f1368fb /x11-base
parentMarked ~ppc for bug #114830. (diff)
downloadhistorical-fc7c31014eb627a755af196b9b13f999a78cc89c.tar.gz
historical-fc7c31014eb627a755af196b9b13f999a78cc89c.tar.bz2
historical-fc7c31014eb627a755af196b9b13f999a78cc89c.zip
Automated script shouldn't have had this package as input, because it's not all hard-masked. Restore old version.
Package-Manager: portage-2.0.53
Diffstat (limited to 'x11-base')
-rw-r--r--x11-base/kdrive/ChangeLog7
-rw-r--r--x11-base/kdrive/Manifest4
-rw-r--r--x11-base/kdrive/files/digest-kdrive-4.3.0-r54
-rw-r--r--x11-base/kdrive/kdrive-4.3.0-r5.ebuild310
4 files changed, 323 insertions, 2 deletions
diff --git a/x11-base/kdrive/ChangeLog b/x11-base/kdrive/ChangeLog
index 804ab3229a7a..6e297786a092 100644
--- a/x11-base/kdrive/ChangeLog
+++ b/x11-base/kdrive/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for x11-base/kdrive
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-base/kdrive/ChangeLog,v 1.33 2005/12/09 15:10:58 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-base/kdrive/ChangeLog,v 1.34 2005/12/09 15:29:38 spyderous Exp $
+
+ 09 Dec 2005; Donnie Berkholz <spyderous@gentoo.org>;
+ +kdrive-4.3.0-r5.ebuild:
+ Automated script shouldn't have had this package as input, because it's not
+ all hard-masked. Restore old version.
09 Dec 2005; Donnie Berkholz <spyderous@gentoo.org>;
-kdrive-4.3.0-r5.ebuild:
diff --git a/x11-base/kdrive/Manifest b/x11-base/kdrive/Manifest
index 7e451c4a6790..00e564d508a8 100644
--- a/x11-base/kdrive/Manifest
+++ b/x11-base/kdrive/Manifest
@@ -1,6 +1,8 @@
-MD5 d54649208f99efb45c86c58af45a70a9 ChangeLog 6167
+MD5 39279ed9fa40aedbf802ef7b25faa8c3 ChangeLog 6368
+MD5 a6e0af618cce0a49bbda2a83d4704b53 files/digest-kdrive-4.3.0-r5 254
MD5 150e6b8975ca879186466f40884bd085 files/digest-kdrive-6.6.1_pre20050820 70
MD5 69b96dd899a580d0ad5d2516108ee97c files/make-xv-configable.patch 611
MD5 df59ec9c062d8c091f496ba8d57f054e files/startxkd 392
+MD5 cb04d9d4a9a080b0ff0cea43c0e55b35 kdrive-4.3.0-r5.ebuild 10491
MD5 16a5f9a7ba698acfeb4531400ee03595 kdrive-6.6.1_pre20050820.ebuild 2312
MD5 857cb50121a1ff814cb50eec928a7ed7 metadata.xml 249
diff --git a/x11-base/kdrive/files/digest-kdrive-4.3.0-r5 b/x11-base/kdrive/files/digest-kdrive-4.3.0-r5
new file mode 100644
index 000000000000..c1b117997d86
--- /dev/null
+++ b/x11-base/kdrive/files/digest-kdrive-4.3.0-r5
@@ -0,0 +1,4 @@
+MD5 4f241a4f867363f40efa2b00dca292af X430src-1.tgz 10993622
+MD5 844c2ee908d21dbf8911fd13115bf8b4 X430src-2.tgz 7962239
+MD5 b82a0443e1b7bf860e4343e6b6766cb6 X430src-3.tgz 12366363
+MD5 920712d0d45061d026304f013b52cda8 kdrive-4.3.0-gentoo-0.5.tar.bz2 11257
diff --git a/x11-base/kdrive/kdrive-4.3.0-r5.ebuild b/x11-base/kdrive/kdrive-4.3.0-r5.ebuild
new file mode 100644
index 000000000000..02368556f919
--- /dev/null
+++ b/x11-base/kdrive/kdrive-4.3.0-r5.ebuild
@@ -0,0 +1,310 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-base/kdrive/kdrive-4.3.0-r5.ebuild,v 1.18 2005/12/09 15:29:38 spyderous Exp $
+
+# If you don't want to build the Xvesa server, do this.
+# VESA="no" emerge kdrive
+
+# By default, this will build a server with no support for scalable
+# fonts (but support for built-in ``fixed'' and ``cursor'' fonts, and
+# normal support for bitmap fonts and font-server provided fonts).
+
+IUSE="ipv6 xinerama fbdev speedo type1 cjk truetype font-server xv debug"
+
+IUSE_VIDEO_CARDS="savage trident sis530 trio ts300 mach64 i810 igs"
+
+inherit eutils flag-o-matic toolchain-funcs x11 linux-info
+
+filter-flags "-funroll-loops"
+
+ALLOWED_FLAGS="-fstack-protector -march -mcpu -O -O1 -Os -O2 -O3 -pipe -fomit-frame-pointer"
+
+# Recently there has been a lot of stability problem in Gentoo-land. Many
+# things can be the cause to this, but I believe that it is due to gcc3
+# still having issues with optimizations, or with it not filtering bad
+# combinations (protecting the user maybe from themselves) yet.
+#
+# This can clearly be seen in large builds like glibc, where too aggressive
+# CFLAGS cause the tests to fail miserbly.
+#
+# Quote from Nick Jones <carpaski@gentoo.org>, who in my opinion
+# knows what he is talking about:
+#
+# People really shouldn't force code-specific options on... It's a
+# bad idea. The -march options aren't just to look pretty. They enable
+# options that are sensible (and include sse,mmx,3dnow when apropriate).
+#
+# The next command strips CFLAGS and CXXFLAGS from nearly all flags. If
+# you do not like it, comment it, but do not bugreport if you run into
+# problems.
+#
+# <azarah@gentoo.org> (13 Oct 2002)
+strip-flags
+
+# Are we using a snapshot ?
+USE_SNAPSHOT="no"
+PATCHVER="0.5"
+MANDIR=${WORKDIR}/man
+PATCH_DIR="${WORKDIR}/patch"
+BASE_PV="${PV}"
+MY_SV="${BASE_PV//\.}"
+S="${WORKDIR}/xc"
+SRC_PATH="mirror://xfree/${BASE_PV}/source"
+HOMEPAGE="http://www.xfree.org"
+SRC_URI="${SRC_PATH}/X${MY_SV}src-1.tgz
+ ${SRC_PATH}/X${MY_SV}src-2.tgz
+ ${SRC_PATH}/X${MY_SV}src-3.tgz
+ mirror://gentoo/${P}-gentoo-${PATCHVER}.tar.bz2"
+LICENSE="X11"
+SLOT="0"
+KEYWORDS="x86 amd64"
+# Need portage for USE_EXPAND
+DEPEND=">=sys-libs/ncurses-5.1
+ >=sys-libs/zlib-1.1.3-r2
+ >=sys-devel/flex-2.5.4a-r5
+ >=dev-libs/expat-1.95.3
+ >=sys-apps/sed-4
+ dev-lang/perl
+ media-libs/libpng
+ >=sys-apps/portage-2.0.49-r13
+ truetype? ( media-libs/freetype )"
+
+DESCRIPTION="Xfree86: famous and free X server. Tiny version (KDrive)"
+
+src_unpack() {
+ unpack ${A}
+
+ ebegin "Setting up config/cf/host.def"
+
+ # See linux.cf for MMX, 3DNOW and SSE autodetection. (spyderous)
+
+ cd ${S}
+ touch config/cf/host.def
+ echo "#define XVendorString \"Gentoo Linux (KDrive ${PV}, revision ${PR})\"
+#define KDriveXServer YES
+#define TinyXServer YES
+#define BuildLBX NO
+#define BuildDBE YES
+#define KdriveServerExtraDefines -DPIXPRIV
+#define BuildRandR YES
+#define BuildXInputLib YES
+#define BuildXTrueType NO
+#define ServerXdmcpDefines -DXDMCP
+#define BuildFonts NO" >>config/cf/host.def
+
+ # We dont really want to spend twice as long compiling libraries
+ # if they exist of the system allready, so we check and change
+ # respectively here.
+ if [ "`best_version virtual/x11`" ] ; then
+ echo "#define BuildScreenSaverExt NO" >> config/cf/host.def
+ echo "#define BuildScreenSaverLibrary NO" >> config/cf/host.def
+ echo "#define SharedLibXss NO" >> config/cf/host.def
+ echo "#define BuildXextLib NO" >> config/cf/host.def
+ echo "#define BuildX11Lib NO" >> config/cf/host.def
+ echo "#define ProjectRoot /usr/X11R6" >> config/cf/host.def
+ # If the libs exist locally we do not need to build against
+ # kdrives personal libraries, dont patch to do this.
+ mv ${PATCH_DIR}/0020* ${PATCH_DIR}/excluded
+ else
+ echo "#define BuildScreenSaverExt YES" >> config/cf/host.def
+ echo "#define BuildScreenSaverLibrary YES" >> config/cf/host.def
+ echo "#define SharedLibXss YES" >> config/cf/host.def
+ echo "#define BuildXextLib YES" >> config/cf/host.def
+ echo "#define BuildX11Lib YES" >> config/cf/host.def
+ echo "#define ProjectRoot ${S}/usr/X11R6" >> config/cf/host.def
+ fi
+
+ # As far as I know, you can't use Xwrapper for multiple X servers,
+ # so we have to suid Xfbdev and Xvesa. mharris (redhat) also does
+ # this.
+ echo "#define InstallXserverSetUID YES" >> config/cf/host.def
+ echo "#define BuildServersOnly YES" >> config/cf/host.def
+
+ if [ "`gcc-version`" != "2.95" ] ; then
+ # Should fix bug #4189. gcc-3.x have problems with -march=pentium4
+ # and -march=athlon-tbird
+ replace-flags "-march=pentium4" "-march=pentium3"
+ replace-flags "-march=athlon-tbird" "-march=athlon"
+
+ # Without this, modules breaks with gcc3
+ if [ "`gcc-version`" = "3.1" ] ; then
+ append-flags "-fno-merge-constants"
+ append-flags "-fno-merge-constants"
+ fi
+ fi
+
+ get_version
+ if [ "${KV_MAJOR}" -ge "2" -a "${KV_MINOR}" -ge "4" ] || \
+ ( [ -e "${ROOT}/usr/src/linux" ] && \
+ [ ! $(kernel_is "2" "2") ] ) || \
+ [ "$(uname -r | cut -d. -f1,2)" != "2.2" ]
+ then
+ echo "#define HasLinuxInput YES" >> config/cf/host.def
+ fi
+
+ echo "#define OptimizedCDebugFlags ${CFLAGS}" >> config/cf/host.def
+ echo "#define OptimizedCplusplusDebugFlags ${CXXFLAGS}" >> config/cf/host.def
+
+ if use debug ; then
+ echo "#define XFree86Devel YES" >> config/cf/host.def
+ echo "#define DoLoadableServer NO" >>config/cf/host.def
+ else
+ # use less ram .. got this from Spider's makeedit.eclass :)
+ echo "#define GccWarningOptions -Wno-return-type -w" \
+ >> config/cf/host.def
+ fi
+
+ # Xvesa isn't available on non-x86, non-gcc platforms.
+ # See http://lists.debian.org/debian-x/2000/debian-x-200012/msg00029.html
+ if vesa no || [ "${ARCH}" != "x86" ] ; then
+ echo "#define XvesaServer NO" >> config/cf/host.def
+ else
+ echo "#define XvesaServer YES" >> config/cf/host.def
+ fi
+
+ use fbdev && \
+ echo "#define XfbdevServer YES" >> config/cf/host.def || \
+ echo "#define XfbdevServer NO" >> config/cf/host.def
+
+ use ipv6 && \
+ echo "#define HasIPv6 YES" >> config/cf/host.def
+
+ use xinerama && \
+ echo "#define BuildXinerama YES" >> config/cf/host.def
+
+ local KDRIVE_XF_SERVERS="Savage Trident Sis530 Trio TS300 Igs i810 mach64"
+ for i in ${KDRIVE_XF_SERVERS} ; do
+ # I wish it worked like this. (spyderous)
+ # if use video_cards_${i/[A-Z]/[a-z]} ; then
+ if use `echo video_cards_${i} | tr [:upper:] [:lower:]` ; then
+ echo "#define X${i}Server YES" >> config/cf/host.def
+ fi
+ done
+
+ # Set up font support
+ use speedo && echo "#define BuildSpeedo YES" >> config/cf/host.def
+ use type1 && echo "#define BuildType1 YES" >> config/cf/host.def
+ use cjk && echo "#define BuildCID YES" >> config/cf/host.def
+ use truetype && echo "#define BuildXTrueType YES" >> config/cf/host.def \
+ && echo "#define BuildFreeType YES" >> config/cf/host.def
+ use font-server && echo "#define FontServerAccess YES" >> config/cf/host.def
+
+ # Video
+ use xv && echo "#define BuildXvExt YES" >> config/cf/host.def
+
+ eend 0
+
+ # Bulk patching from all over
+ cd ${WORKDIR}
+ EPATCH_SUFFIX="patch" epatch ${PATCH_DIR}
+
+ # We need to modify xmakefile after it has been created
+ if [ ! "`best_version virtual/x11`" ] ; then
+ ebegin "Creating fake X includes..."
+ MY_PROJROOT="${S}/usr/X11R6/include/"
+ MY_INCROOT="${S}/include"
+ MY_LIBROOT="${S}/lib"
+ MY_HERE="./"
+
+ mkdir -p ${MY_PROJROOT}
+ cd ${MY_INCROOT}
+ for i in `ls ${MY_HERE}` ; do
+ ln -sf ${MY_INCROOT}/${i} ${MY_PROJROOT}
+ done
+
+ cd ${MY_LIBROOT}
+ for i in `ls ${MY_HERE}` ; do
+ ln -sf ${MY_LIBROOT}/${i} ${MY_PROJROOT}
+ done
+
+ cd ${MY_PROJROOT} && rm -f Imakefile Makefile
+ ln -sf ${MY_PROJROOT}/extensions ${MY_PROJROOT}/X11/extensions
+ ln -sf ${S}/lib ${S}/usr/X11R6/lib
+ eend 0
+ fi
+
+ # Fixing bugs #68531 and #65758 -- this will disable toshiba dpms support
+ sed '/#ifndef TOSHIBA_SMM/,/#endif/d' -i ${S}/programs/Xserver/hw/kdrive/vesa/vesa.c
+}
+
+src_compile() {
+
+ # If a user defines the MAKE_OPTS variable in /etc/make.conf instead of
+ # MAKEOPTS, they'll redefine an internal X11 Makefile variable and the
+ # X11 build will silently die. This is tricky to track down, so I'm
+ # adding a preemptive fix for this issue by making sure that MAKE_OPTS is
+ # unset. (drobbins, 08 Mar 2003)
+ unset MAKE_OPTS
+
+ einfo "Building KDrive..."
+ emake World WORLDOPTS="" || die
+
+ # This is dirty, we know, but there is no need to build man pages
+ # for a whole pile of nothing. As such we are just going to copy
+ # across the three needed man pages.
+ einfo "Making and installing man pages..."
+ mkdir -p ${MANDIR}
+ MY_MAN_BASE="${S}/programs/Xserver/hw/kdrive"
+
+ if ! use fbdev ; then
+ # We need to regenerate some makefiles for fbdev
+ echo "#define XfbdevServer YES" >> config/cf/host.def
+ cd ${S}/programs && make Makefiles > /dev/null || die "Xfbdev Makefile regeneration error..."
+ fi
+
+ # We have a complete set of makefiles so lets just build what we need
+ cd ${MY_MAN_BASE}
+ emake DESTDIR=${MANDIR} install.man || die "Kdrive man page install..."
+ emake DESTDIR=${MANDIR} -C vesa install.man || die "Xvesa man page install..."
+ emake DESTDIR=${MANDIR} -C fbdev install.man || die "Xfbdev man page install..."
+
+}
+
+src_install() {
+
+ exeinto /usr/X11R6/bin
+
+ # Install Xvesa
+ if [ -z "`vesa no`" ] ; then
+ doexe programs/Xserver/Xvesa
+ fperms 4711 /usr/X11R6/bin/Xvesa
+ fi
+
+ # Install Xfbdev
+ if use fbdev ; then
+ doexe programs/Xserver/Xfbdev
+ fperms 4711 /usr/X11R6/bin/Xfbdev
+ fi
+
+ # Install the other servers
+ local KDRIVE_SERVERS="savage trident sis530 trio ts300 igs i810 mach64"
+ for i in ${KDRIVE_SERVERS} ; do
+ if use video_cards_${i} ; then
+ doexe programs/Xserver/X${i}
+ fperms 4711 /usr/X11R6/bin/X${i}
+ fi
+ done
+
+ # Install our startx script
+ doexe ${PATCH_DIR}/startxkd
+
+ # Install man pages
+ if [ "`best_version virtual/x11`" ] ; then
+ doman ${MANDIR}/usr/X11R6/man/man1/X{kdrive,vesa,fbdev}.1x
+ else
+ doman ${MANDIR}/${S}/usr/X11R6/man/man1/X{kdrive,vesa,fbdev}.1x
+ fi
+}
+
+pkg_postinst() {
+ einfo "You may edit /usr/X11R6/bin/startxkd to your preferences."
+ einfo "Xvesa is the default."
+ einfo "Or you can use something like:"
+ einfo "\"xinit -- /usr/X11R6/bin/Xvesa :0 -screen 1280x1024x16 -nolisten tcp\"."
+ einfo "Your ~/.xinitrc will be used if you use xinit."
+}
+
+# For allowing Xvesa build to be disabled
+vesa() {
+ has "$1" "${VESA}"
+}