1 |
pinkbyte 13/02/25 20:25:17 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: luadbi-0.5-r2.ebuild |
5 |
Log: |
6 |
Revision bump: EAPI 5, fix target dependencies in Makefile patch, respect CFLAGS, wrt bug #436652 |
7 |
|
8 |
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42) |
9 |
|
10 |
Revision Changes Path |
11 |
1.10 dev-lua/luadbi/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luadbi/ChangeLog?rev=1.10&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luadbi/ChangeLog?rev=1.10&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luadbi/ChangeLog?r1=1.9&r2=1.10 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lua/luadbi/ChangeLog,v |
20 |
retrieving revision 1.9 |
21 |
retrieving revision 1.10 |
22 |
diff -u -r1.9 -r1.10 |
23 |
--- ChangeLog 31 Dec 2012 09:50:58 -0000 1.9 |
24 |
+++ ChangeLog 25 Feb 2013 20:25:17 -0000 1.10 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for dev-lua/luadbi |
27 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lua/luadbi/ChangeLog,v 1.9 2012/12/31 09:50:58 djc Exp $ |
29 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lua/luadbi/ChangeLog,v 1.10 2013/02/25 20:25:17 pinkbyte Exp $ |
31 |
+ |
32 |
+*luadbi-0.5-r2 (25 Feb 2013) |
33 |
+ |
34 |
+ 25 Feb 2013; Sergey Popov <pinkbyte@g.o> +files/0.5-r2-Makefile.patch, |
35 |
+ +luadbi-0.5-r2.ebuild: |
36 |
+ Revision bump: EAPI 5, fix target dependencies in Makefile patch, respect |
37 |
+ CFLAGS, wrt bug #436652 |
38 |
|
39 |
31 Dec 2012; Dirkjan Ochtman <djc@g.o> metadata.xml: |
40 |
Remove myself as a maintainer. |
41 |
|
42 |
|
43 |
|
44 |
1.1 dev-lua/luadbi/luadbi-0.5-r2.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luadbi/luadbi-0.5-r2.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luadbi/luadbi-0.5-r2.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: luadbi-0.5-r2.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2013 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/dev-lua/luadbi/luadbi-0.5-r2.ebuild,v 1.1 2013/02/25 20:25:17 pinkbyte Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
|
57 |
inherit multilib toolchain-funcs flag-o-matic eutils |
58 |
|
59 |
DESCRIPTION="DBI module for Lua" |
60 |
HOMEPAGE="http://code.google.com/p/luadbi/" |
61 |
SRC_URI="http://luadbi.googlecode.com/files/${PN}.${PV}.tar.gz" |
62 |
|
63 |
LICENSE="MIT" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~x86" |
66 |
IUSE="mysql postgres sqlite" |
67 |
REQUIRED_USE="|| ( mysql postgres sqlite )" |
68 |
|
69 |
RDEPEND=">=dev-lang/lua-5.1 |
70 |
mysql? ( virtual/mysql ) |
71 |
postgres? ( dev-db/postgresql-base ) |
72 |
sqlite? ( >=dev-db/sqlite-3 )" |
73 |
DEPEND="${RDEPEND} |
74 |
virtual/pkgconfig" |
75 |
|
76 |
S="${WORKDIR}" |
77 |
|
78 |
src_prepare() { |
79 |
epatch "${FILESDIR}/${PVR}-Makefile.patch" |
80 |
epatch "${FILESDIR}/${PV}-postgres-path.patch" |
81 |
sed -i -e "s#^INSTALL_DIR_LUA=.*#INSTALL_DIR_LUA=$(pkg-config --variable INSTALL_LMOD lua)#" "${S}/Makefile" |
82 |
sed -i -e "s#^INSTALL_DIR_BIN=.*#INSTALL_DIR_BIN=$(pkg-config --variable INSTALL_CMOD lua)#" "${S}/Makefile" |
83 |
sed -i -e "s#^LUA_INC_DIR=.*#LUA_INC_DIR=$(pkg-config --variable INSTALL_INC lua)#" "${S}/Makefile" |
84 |
sed -i -e "s#^LUA_LIB_DIR=.*#LUA_LIB_DIR=$(pkg-config --variable INSTALL_LIB lua)#" "${S}/Makefile" |
85 |
sed -i -e "s#^LUA_LIB =.*#LUA_LIB=lua#" "${S}/Makefile" |
86 |
} |
87 |
|
88 |
src_compile() { |
89 |
local drivers="" |
90 |
use mysql && drivers="${drivers} mysql" |
91 |
use postgres && drivers="${drivers} psql" |
92 |
use sqlite && drivers="${drivers} sqlite3" |
93 |
|
94 |
append-flags -fPIC |
95 |
for driver in "${drivers}" ; do |
96 |
emake CC="$(tc-getCC)" COMMON_LDFLAGS="${LDFLAGS}" ${driver} |
97 |
done |
98 |
} |
99 |
|
100 |
src_install() { |
101 |
local drivers="" |
102 |
use mysql && drivers="${drivers} mysql" |
103 |
use postgres && drivers="${drivers} psql" |
104 |
use sqlite && drivers="${drivers} sqlite3" |
105 |
|
106 |
for driver in ${drivers} ; do |
107 |
emake DESTDIR="${D}" "install_${driver// /}" |
108 |
done |
109 |
} |