public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher (jlec)" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/tre/files: 0.8.0-python.patch
Date: Fri,  4 Mar 2011 17:37:54 +0000 (UTC)	[thread overview]
Message-ID: <20110304173754.E010820054@flycatcher.gentoo.org> (raw)

jlec        11/03/04 17:37:54

  Added:                0.8.0-python.patch
  Log:
  Added python support, 357397, thanks Martin for the Patch
  
  (Portage version: 2.2.0_alpha26/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-libs/tre/files/0.8.0-python.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/tre/files/0.8.0-python.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/tre/files/0.8.0-python.patch?rev=1.1&content-type=text/plain

Index: 0.8.0-python.patch
===================================================================
diff --git a/python/setup.py b/python/setup.py
index b420a4c..b1bca6b 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -10,7 +10,8 @@ import shutil
 
 version = "0.8.0"
 data_files = []
-include_dirs = ["../lib"]
+include_dirs = ["lib"]
+library_dirs = ["lib/.libs"]
 libraries = ["tre"]
 
 if sys.platform == "win32":
@@ -28,9 +29,10 @@ setup(name = "tre",
       url = "http://laurikari.net/tre/",
       data_files = data_files,
       ext_modules = [Extension("tre",
-                               sources = ["tre-python.c"],
+                               sources = ["python/tre-python.c"],
                                define_macros = [("HAVE_CONFIG_H", None)],
                                include_dirs = include_dirs,
+			       library_dirs = library_dirs,
                                libraries = libraries
                                ),
                      ],
diff --git a/python/tre-python.c b/python/tre-python.c
index bbb24ed..2e35e3a 100644
--- a/python/tre-python.c
+++ b/python/tre-python.c
@@ -13,7 +13,7 @@
 #include "Python.h"
 #include "structmember.h"
 
-#include <tre/tre.h>
+#include <tre.h>
 
 #define	TRE_MODULE	"tre"
 






                 reply	other threads:[~2011-03-04 17:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110304173754.E010820054@flycatcher.gentoo.org \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox