From: | "Manuel Rueger (mrueg)" <mrueg@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-lua/luadbi: luadbi-0.5-r3.ebuild ChangeLog |
Date: | Mon, 29 Jul 2013 01:49:28 |
Message-Id: | 20130729014921.718E72171C@flycatcher.gentoo.org |
1 | mrueg 13/07/29 01:49:21 |
2 | |
3 | Modified: ChangeLog |
4 | Added: luadbi-0.5-r3.ebuild |
5 | Log: |
6 | Fixes bug #475942. Ebuild patch by Alexander Tsoy. Minor improvements by me |
7 | |
8 | (Portage version: 2.1.13.1/cvs/Linux x86_64, signed Manifest commit with key ) |
9 | |
10 | Revision Changes Path |
11 | 1.15 dev-lua/luadbi/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luadbi/ChangeLog?rev=1.15&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luadbi/ChangeLog?rev=1.15&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luadbi/ChangeLog?r1=1.14&r2=1.15 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-lua/luadbi/ChangeLog,v |
20 | retrieving revision 1.14 |
21 | retrieving revision 1.15 |
22 | diff -u -r1.14 -r1.15 |
23 | --- ChangeLog 22 Jul 2013 23:33:10 -0000 1.14 |
24 | +++ ChangeLog 29 Jul 2013 01:49:21 -0000 1.15 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for dev-lua/luadbi |
27 | # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-lua/luadbi/ChangeLog,v 1.14 2013/07/22 23:33:10 mrueg Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/dev-lua/luadbi/ChangeLog,v 1.15 2013/07/29 01:49:21 mrueg Exp $ |
30 | + |
31 | +*luadbi-0.5-r3 (29 Jul 2013) |
32 | + |
33 | + 29 Jul 2013; Manuel Rüger <mrueg@g.o> +luadbi-0.5-r3.ebuild: |
34 | + Fixes bug #475942. Ebuild patch by Alexander Tsoy. Minor improvements by me |
35 | |
36 | 22 Jul 2013; Manuel Rüger <mrueg@g.o> metadata.xml: |
37 | Taking up maintainership |
38 | |
39 | |
40 | |
41 | 1.1 dev-lua/luadbi/luadbi-0.5-r3.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luadbi/luadbi-0.5-r3.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luadbi/luadbi-0.5-r3.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: luadbi-0.5-r3.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2013 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/dev-lua/luadbi/luadbi-0.5-r3.ebuild,v 1.1 2013/07/29 01:49:21 mrueg Exp $ |
51 | |
52 | EAPI=5 |
53 | |
54 | inherit toolchain-funcs flag-o-matic eutils |
55 | |
56 | DESCRIPTION="DBI module for Lua" |
57 | HOMEPAGE="http://code.google.com/p/luadbi/" |
58 | SRC_URI="http://luadbi.googlecode.com/files/${PN}.${PV}.tar.gz" |
59 | |
60 | LICENSE="MIT" |
61 | SLOT="0" |
62 | KEYWORDS="~amd64 ~x86" |
63 | IUSE="mysql postgres sqlite" |
64 | REQUIRED_USE="|| ( mysql postgres sqlite )" |
65 | |
66 | RDEPEND=">=dev-lang/lua-5.1 |
67 | mysql? ( virtual/mysql ) |
68 | postgres? ( dev-db/postgresql-base ) |
69 | sqlite? ( >=dev-db/sqlite-3 )" |
70 | DEPEND="${RDEPEND} |
71 | virtual/pkgconfig" |
72 | |
73 | S="${WORKDIR}" |
74 | |
75 | src_prepare() { |
76 | epatch "${FILESDIR}"/${PV}-r2-Makefile.patch \ |
77 | "${FILESDIR}"/${PV}-postgres-path.patch |
78 | sed -i -e "s#^INSTALL_DIR_LUA=.*#INSTALL_DIR_LUA=$(pkg-config --variable INSTALL_LMOD lua)#" \ |
79 | -e "s#^INSTALL_DIR_BIN=.*#INSTALL_DIR_BIN=$(pkg-config --variable INSTALL_CMOD lua)#" \ |
80 | -e "s#^LUA_INC_DIR=.*#LUA_INC_DIR=$(pkg-config --variable INSTALL_INC lua)#" \ |
81 | -e "s#^LUA_LIB_DIR=.*#LUA_LIB_DIR=$(pkg-config --variable INSTALL_LIB lua)#" \ |
82 | -e "s#^LUA_LIB =.*#LUA_LIB=lua#" Makefile || die |
83 | |
84 | drivers="" |
85 | |
86 | if use mysql; then |
87 | drivers+="mysql " |
88 | sed -i -e "s#^\(INCLUDES.*\)#\1 $(mysql_config --include)#" \ |
89 | -e "s#^\(MYSQL_LDFLAGS=\$(COMMON_LDFLAGS)\).*#\1 $(mysql_config --libs)#" Makefile || die |
90 | fi |
91 | |
92 | if use postgres; then |
93 | drivers+="psql " |
94 | sed -i -e "s#^\(INCLUDES.*\)#\1 -I$(pg_config --includedir)#" \ |
95 | -e "s#^\(PSQL_LDFLAGS=\$(COMMON_LDFLAGS)\).*#\1 -L$(pg_config --libdir) -lpq#" Makefile || die |
96 | fi |
97 | |
98 | use sqlite && drivers+="sqlite3" |
99 | } |
100 | |
101 | src_compile() { |
102 | append-flags -fPIC |
103 | for driver in ${drivers}; do |
104 | emake CC="$(tc-getCC)" COMMON_LDFLAGS="${LDFLAGS}" ${driver} |
105 | done |
106 | } |
107 | |
108 | src_install() { |
109 | for driver in ${drivers}; do |
110 | emake DESTDIR="${D}" "install_${driver// /}" |
111 | done |
112 | } |