diff options
author | Mike Frysinger <vapier@gentoo.org> | 2002-10-29 18:17:48 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2002-10-29 18:17:48 +0000 |
commit | cd529af7b0350c677e7b26f064dbcd6659ae689e (patch) | |
tree | bf40e64309cbc9485110fac4c1321ea8ba4c1e0c /dev-python | |
parent | initial import (diff) | |
download | historical-cd529af7b0350c677e7b26f064dbcd6659ae689e.tar.gz historical-cd529af7b0350c677e7b26f064dbcd6659ae689e.tar.bz2 historical-cd529af7b0350c677e7b26f064dbcd6659ae689e.zip |
install python stuff
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/wxPython/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/wxPython/files/digest-wxPython-2.3.3.1-r1 | 1 | ||||
-rw-r--r-- | dev-python/wxPython/wxPython-2.3.3.1-r1.ebuild | 138 |
3 files changed, 145 insertions, 1 deletions
diff --git a/dev-python/wxPython/ChangeLog b/dev-python/wxPython/ChangeLog index fb02f4d59186..16734f569c6d 100644 --- a/dev-python/wxPython/ChangeLog +++ b/dev-python/wxPython/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/wxPython # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/dev-python/wxPython/ChangeLog,v 1.10 2002/10/29 07:11:10 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/wxPython/ChangeLog,v 1.11 2002/10/29 18:17:48 vapier Exp $ + +*wxPython-2.3.3.1-r1 (28 Oct 2002) + + 28 Oct 2002; Mike Frysinger <vapier@gentoo.org> : + added some changes per discussion on #9693 *wxPython-2.3.3.1 (28 Oct 2002) diff --git a/dev-python/wxPython/files/digest-wxPython-2.3.3.1-r1 b/dev-python/wxPython/files/digest-wxPython-2.3.3.1-r1 new file mode 100644 index 000000000000..d8ba57c02af6 --- /dev/null +++ b/dev-python/wxPython/files/digest-wxPython-2.3.3.1-r1 @@ -0,0 +1 @@ +MD5 ba09626f1ff92304677a473b870bcb24 wxPythonSrc-2.3.3.1.tar.gz 11143374 diff --git a/dev-python/wxPython/wxPython-2.3.3.1-r1.ebuild b/dev-python/wxPython/wxPython-2.3.3.1-r1.ebuild new file mode 100644 index 000000000000..61e9face9244 --- /dev/null +++ b/dev-python/wxPython/wxPython-2.3.3.1-r1.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/wxPython/wxPython-2.3.3.1-r1.ebuild,v 1.1 2002/10/29 18:17:48 vapier Exp $ + +IUSE="nls odbc jpeg png opengl gif zlib X" + +MY_P="${P/-/Src-}" +S=${WORKDIR}/${MY_P} +DESCRIPTION="A blending of the wxWindows C++ class library with Python." +SRC_URI="mirror://sourceforge/wxpython/${MY_P}.tar.gz" +HOMEPAGE="http://www.wxpython.org/" + +DEPEND="dev-libs/libunicode + media-libs/netpbm + gif? ( media-libs/giflib ) + png? ( media-libs/libpng ) + jpeg? ( media-libs/jpeg ) + media-libs/tiff + zlib? ( sys-libs/zlib ) + odbc? ( dev-db/unixODBC ) + opengl? ( virtual/opengl >=dev-python/PyOpenGL-2.0.0.44 ) + X? ( virtual/x11 ) + >=dev-lang/python-2.1 + =dev-libs/glib-1.2* + =x11-libs/gtk+-1.2* + =x11-libs/wxGTK-2.3.3*" +RDEPEND="nls? ( sys-devel/gettext )" + +SLOT="0" +LICENSE="LGPL-2" +KEYWORDS="~x86 ~ppc ~sparc ~sparc64 ~alpha" + +pkg_setup() { + # xfree should not install these, remove until the fixed + # xfree is in main use. + rm -f /usr/X11R6/include/{zconf.h,zlib.h} +} + +src_compile() { + local myconf="" + + local myconf + + #Note: pcx image support enabled by default if found. + #Also, all wxWindows gui features are enabled by default. If you + #want to build a smaller library you can disable features by adding + #the appropriate flags to myconf (see INSTALL.txt). + + #The build tools include a --with-freetype option, however it doesn't + #seem to be implemented in the source yet. + + #confiure options that have corresponding USE variable. + + use static \ + && myconf="${myconf} --enable-static" \ + || myconf="${myconf} --disable-static" + + use nls \ + && myconf="${myconf} --with-unicode" \ + || myconf="${myconf} --without-unicode" + + use gif \ + && myconf="${myconf} --enable-gif" \ + || myconf="${myconf} --disable-gif" + +# a required option +# use tiff \ +# && myconf="${myconf} --with-libtiff" \ +# || myconf="${myconf} --without-libtiff" + myconf="${myconf} --with-libtiff" + + use zlib \ + && myconf="${myconf} --with-zlib" \ + || myconf="${myconf} --without-zlib" + + use odbc \ + && myconf="${myconf} --with-odbc" \ + || myconf="${myconf} --without-odbc" + + use opengl \ + && myconf="${myconf} --with-opengl" \ + || myconf="${myconf} --without-opengl" + + use png \ + && myconf="${myconf} --with-libpng --enable-png" \ + || myconf="${myconf} --without-libpng --disable-png" + + use jpeg \ + && myconf="${myconf} --with-libjpeg" \ + || myconf="${myconf} --without-libjpeg" + + use X && myconf="${myconf} --with-x" + + # here we specify our own preference of which toolkit to build ... + # but only gtk seems to work atm ... +# if [ `use gtk` ] ; then + myconf="${myconf} --with-gtk" +# elif [ `use X` ] ; then +# myconf="${myconf} --with-x11" +# elif [ `use motif` ] ; then +# myconf="${myconf} --with-motif" +# else +# eerror "You must have either gtk, X, or motif in your USE variable" +# die "could not specify toolkit" +# fi +# use gtk2 && myconf="${myconf} --enable-gtk2" + + # create links so the build doesnt fail + for d in ogl stc xrc gizmos ; do + ln -s ${S}/contrib/ ${S}/wxPython/contrib/${d}/contrib + done + + econf ${myconf} + make || die + + #Other possible configuration variables are BUILD_OGL and BUILD_STC. + #BUILD_OGL builds the Object Graphics Library extension module. + #BUILD_STC builds the wxStyledTextCtrl (the Scintilla wrapper) extension module. + #Both these variable are enabled by default. To disable them set equal to zero + #and add to myconf. + cd ${S}/wxPython + + myconf="" + if [ `use opengl` ] ; then + myconf="${myconf} BUILD_GLCANVAS=1" + else + myconf="${myconf} BUILD_GLCANVAS=0" + patch -p1 < ${FILESDIR}/noglcanvas.diff || die "patch failed" + fi + + python setup.py ${myconf} build || die +} + +src_install() { + einstall + cd ${S}/wxPython + python setup.py ${myconf} install --prefix=/usr --root=${D} || die +} |