/[gentoo-x86]/dev-db/lib_mysqludf_ta/lib_mysqludf_ta-0.1.ebuild
Gentoo

Contents of /dev-db/lib_mysqludf_ta/lib_mysqludf_ta-0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Oct 19 12:32:13 2011 UTC (8 years, 8 months ago) by sbriesen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
moved econf to src_configure

(Portage version: 2.2.0_alpha67/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/lib_mysqludf_ta/lib_mysqludf_ta-0.1.ebuild,v 1.1 2011/10/19 12:30:29 sbriesen Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs autotools
8
9 MY_REV="a8e623c" # checkout revision
10 MY_USR="joaocosta" # user name
11
12 MY_P="${MY_USR}-${PN}-${MY_REV}"
13
14 DESCRIPTION="MySQL UDFs with technical analysis functions"
15 HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_ta/"
16 SRC_URI="https://github.com/${MY_USR}/${PN}/tarball/${MY_REV} -> ${MY_P}.tar.gz"
17
18 LICENSE="LGPL-2.1"
19 SLOT="0"
20 KEYWORDS="~amd64 ~x86"
21 IUSE=""
22
23 DEPEND=">=virtual/mysql-5.1"
24 RDEPEND="${DEPEND}"
25
26 RESTRICT="test"
27
28 S="${WORKDIR}/${MY_P}"
29
30 pkg_setup() {
31 MYSQL_PLUGINDIR="$(mysql_config --plugindir)"
32 MYSQL_INCLUDE="$(mysql_config --include)"
33 }
34
35 src_prepare() {
36
37 # fix Makefile.am
38 sed -i -e "s|\(-shared\)|\1 -avoid-version|g" Makefile.am
39
40 # convert to UTF-8
41 iconv -f LATIN1 -t UTF-8 < README > README~
42 mv -f README~ README
43
44 edos2unix README
45 eautoreconf
46 }
47
48 src_configure() {
49 econf --with-pic --disable-static --libdir="${MYSQL_PLUGINDIR}"
50 }
51
52 src_install() {
53 emake DESTDIR="${D}" install
54 dodoc README sampledb.sql
55
56 # remove obsolete *.la file
57 rm -f -- "${D}${MYSQL_PLUGINDIR}"/*.la
58 }
59
60 pkg_postinst() {
61 elog
62 elog "Please have a look at the documentation, how to"
63 elog "enable/disable the UDF functions of ${PN}."
64 elog
65 elog "The documentation is located here:"
66 elog "/usr/share/doc/${PF}"
67 elog
68 }

  ViewVC Help
Powered by ViewVC 1.1.20