forked from ports/contrib
ctypes: corected patch
This commit is contained in:
parent
a3d642c6e1
commit
53c48efbce
@ -4,7 +4,11 @@ drwxr-xr-x root/root usr/lib/python2.4/
|
||||
drwxr-xr-x root/root usr/lib/python2.4/site-packages/
|
||||
-rwxr-xr-x root/root usr/lib/python2.4/site-packages/_ctypes.so
|
||||
-rwxr-xr-x root/root usr/lib/python2.4/site-packages/_ctypes_test.so
|
||||
-rw-r--r-- root/root usr/lib/python2.4/site-packages/ctypes-1.0.1-py2.5.egg-info
|
||||
drwxr-xr-x root/root usr/lib/python2.4/site-packages/ctypes-1.0.1-py2.4.egg-info/
|
||||
-rw-r--r-- root/root usr/lib/python2.4/site-packages/ctypes-1.0.1-py2.4.egg-info/PKG-INFO
|
||||
-rw-r--r-- root/root usr/lib/python2.4/site-packages/ctypes-1.0.1-py2.4.egg-info/SOURCES.txt
|
||||
-rw-r--r-- root/root usr/lib/python2.4/site-packages/ctypes-1.0.1-py2.4.egg-info/dependency_links.txt
|
||||
-rw-r--r-- root/root usr/lib/python2.4/site-packages/ctypes-1.0.1-py2.4.egg-info/top_level.txt
|
||||
drwxr-xr-x root/root usr/lib/python2.4/site-packages/ctypes/
|
||||
-rw-r--r-- root/root usr/lib/python2.4/site-packages/ctypes/__init__.py
|
||||
-rw-r--r-- root/root usr/lib/python2.4/site-packages/ctypes/__init__.pyc
|
||||
|
@ -1,2 +1,2 @@
|
||||
461920d13dd1d99172e599afcfab42b6 ctypes-1.0.1-install-egg.patch
|
||||
7bf049d7965223d5e1e7fc6f58bb9961 ctypes-1.0.1.patch
|
||||
bdc75102ebc533e1d708296a346cfee4 ctypes-1.0.1.tar.gz
|
||||
|
@ -6,14 +6,14 @@
|
||||
|
||||
name=ctypes
|
||||
version=1.0.1
|
||||
release=2
|
||||
release=1
|
||||
source=(http://dl.sourceforge.net/sourceforge/ctypes/ctypes-$version.tar.gz \
|
||||
ctypes-$version-install-egg.patch)
|
||||
ctypes-$version.patch)
|
||||
|
||||
build() {
|
||||
cd ctypes-$version
|
||||
patch -i $SRC/ctypes-$version-install-egg.patch
|
||||
patch -p1 -i $SRC/ctypes-$version.patch
|
||||
python setup.py install --root=$PKG
|
||||
rm -rf $PKG/usr/lib/python2.4/site-packages/ctypes/test
|
||||
rm -fr $PKG/usr/lib/python2.4/site-packages/ctypes/test
|
||||
}
|
||||
|
||||
|
@ -1,15 +0,0 @@
|
||||
--- setup.py~ 2006-10-21 03:59:25.000000000 +1000
|
||||
+++ setup.py 2007-03-16 21:40:49.000000000 +1100
|
||||
@@ -15,8 +15,10 @@
|
||||
|
||||
################################################################
|
||||
|
||||
-##from ez_setup import use_setuptools
|
||||
-##use_setuptools()
|
||||
+try:
|
||||
+ from ez_setup import use_setuptools
|
||||
+ use_setuptools()
|
||||
+except: pass
|
||||
|
||||
import os, sys
|
||||
|
24
ctypes/ctypes-1.0.1.patch
Normal file
24
ctypes/ctypes-1.0.1.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -Nru ctypes-1.0.1.orig/setup.py ctypes-1.0.1/setup.py
|
||||
--- ctypes-1.0.1.orig/setup.py 2007-03-16 20:45:46.000000000 +1000
|
||||
+++ ctypes-1.0.1/setup.py 2007-03-16 20:58:08.000000000 +1000
|
||||
@@ -15,15 +15,16 @@
|
||||
|
||||
################################################################
|
||||
|
||||
-##from ez_setup import use_setuptools
|
||||
-##use_setuptools()
|
||||
-
|
||||
import os, sys
|
||||
|
||||
if sys.version_info < (2, 3):
|
||||
raise Exception, "ctypes %s requires Python 2.3 or better" % __version__
|
||||
|
||||
-from distutils.core import setup, Extension, Command
|
||||
+try:
|
||||
+ from setuptools import setup, Extension, Command
|
||||
+except ImportError:
|
||||
+ from distutils.core import setup, Extension, Command
|
||||
+
|
||||
import distutils.core
|
||||
from distutils.errors import DistutilsOptionError
|
||||
from distutils.command import build_py, build_ext, clean
|
Loading…
x
Reference in New Issue
Block a user