openbsd-ports/net/py-curl/patches/patch-setup_py
wcmaier 80255dc910 Update to 7.19.0 (back in sync with net/curl).
Also use MODPY_EGG_VERSION, drop patch applied upstream, regen
patches and PLIST. Original diff from Benoit Chesneau <bchesneau at
gmail dot com>, tweaks and several periods of slacking on this
update by me. Thanks, Benoit!
2009-02-01 19:49:58 +00:00

31 lines
1.3 KiB
Plaintext

$OpenBSD: patch-setup_py,v 1.5 2009/02/01 19:49:59 wcmaier Exp $
--- setup.py.orig Tue Sep 9 19:40:34 2008
+++ setup.py Sat Jan 3 01:13:32 2009
@@ -151,20 +151,20 @@ def get_data_files():
if sys.platform == "win32":
datadir = os.path.join("doc", PACKAGE)
else:
- datadir = os.path.join("share", "doc", PACKAGE)
+ datadir = os.path.join("share")
#
- files = ["ChangeLog", "COPYING", "COPYING2", "INSTALL", "README", "TODO",]
+ files = []
if files:
- data_files.append((os.path.join(datadir), files))
+ data_files.append((os.path.join(datadir, "doc", "py-curl"), files))
files = glob.glob(os.path.join("doc", "*.html"))
if files:
- data_files.append((os.path.join(datadir, "html"), files))
+ data_files.append((os.path.join(datadir, "doc", "py-curl"), files))
files = glob.glob(os.path.join("examples", "*.py"))
if files:
- data_files.append((os.path.join(datadir, "examples"), files))
+ data_files.append((os.path.join(datadir, "examples", "py-curl"), files))
files = glob.glob(os.path.join("tests", "*.py"))
if files:
- data_files.append((os.path.join(datadir, "tests"), files))
+ data_files.append((os.path.join(datadir, "examples", "py-curl", "tests"), files))
#
assert data_files
for install_dir, files in data_files: