Gentoo Archives: gentoo-commits

From: "Thomas Anderson (tanderson)" <tanderson@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/stfl/files: stfl-0.21-python.patch
Date: Sat, 03 Apr 2010 13:41:27
Message-Id: E1Ny3av-0006fO-8y@stork.gentoo.org
1 tanderson 10/04/03 13:41:01
2
3 Added: stfl-0.21-python.patch
4 Log:
5 Add dev-libs/stfl-0.21, thanks to Tim Harder <radhermit@×××××.com> in bug #296735 for initial ebuild updates and patches.
6 (Portage version: 2.1.7.17/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-libs/stfl/files/stfl-0.21-python.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/stfl/files/stfl-0.21-python.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/stfl/files/stfl-0.21-python.patch?rev=1.1&content-type=text/plain
13
14 Index: stfl-0.21-python.patch
15 ===================================================================
16 diff -ur stfl-0.21.orig/Makefile stfl-0.21/Makefile
17 --- stfl-0.21.orig/Makefile 2009-06-19 10:30:52.000000000 -0700
18 +++ stfl-0.21/Makefile 2009-12-23 15:12:34.986593069 -0800
19 @@ -46,7 +46,7 @@
20 rm -f widgets/*.o spl/mod_stfl.so spl/example.db
21 cd perl5 && perl Makefile.PL && make clean && rm -f Makefile.old
22 rm -f perl5/stfl_wrap.c perl5/stfl.pm perl5/build_ok
23 - rm -f python/stfl.py python/stfl.pyc python/_stfl.so
24 + rm -f python/stfl.py python/_stfl.so
25 rm -f python/stfl_wrap.c python/stfl_wrap.o
26 rm -f ruby/Makefile ruby/stfl_wrap.c ruby/stfl_wrap.o
27 rm -f ruby/stfl.so ruby/build_ok Makefile.deps_new
28 diff -ur stfl-0.21.orig/python/Makefile.snippet stfl-0.21/python/Makefile.snippet
29 --- stfl-0.21.orig/python/Makefile.snippet 2009-06-18 01:27:16.000000000 -0700
30 +++ stfl-0.21/python/Makefile.snippet 2009-12-23 15:14:54.237606055 -0800
31 @@ -21,20 +21,17 @@
32 PYTHON_VERSION = $(shell python -V 2>&1 | cut -f2 -d' ' | cut -f1-2 -d'.')
33 PYTHON_SITEARCH = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
34
35 -all: python/_stfl.so python/stfl.py python/stfl.pyc
36 +all: python/_stfl.so python/stfl.py
37
38 install: install_python
39
40 -python/_stfl.so python/stfl.py python/stfl.pyc: libstfl.a stfl.h python/stfl.i swig/*.i
41 +python/_stfl.so python/stfl.py: libstfl.a stfl.h python/stfl.i swig/*.i
42 cd python && swig -python -threads stfl.i
43 gcc -shared -pthread -fPIC python/stfl_wrap.c -I/usr/include/python$(PYTHON_VERSION) \
44 -I. libstfl.a -lncursesw -o python/_stfl.so
45 - cd python && python -c 'import stfl'
46
47 -install_python: python/_stfl.so python/stfl.py python/stfl.pyc
48 - mkdir -p $(DESTDIR)$(PYTHON_SITEARCH)/
49 +install_python: python/_stfl.so python/stfl.py
50 mkdir -p $(DESTDIR)$(PYTHON_SITEARCH)/lib-dynload/
51 cp python/_stfl.so $(DESTDIR)$(PYTHON_SITEARCH)/lib-dynload/
52 - cp python/stfl.pyc $(DESTDIR)$(PYTHON_SITEARCH)/
53 cp python/stfl.py $(DESTDIR)$(PYTHON_SITEARCH)/