/[gentoo-x86]/app-admin/elektra/elektra-0.8.3-r2.ebuild
Gentoo

Contents of /app-admin/elektra/elektra-0.8.3-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed Jul 30 22:36:36 2014 UTC (4 years, 3 months ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Drop old versions

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

1 xmw 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 xmw 1.2 # $Header: /var/cvsroot/gentoo-x86/app-admin/elektra/elektra-0.8.3-r2.ebuild,v 1.1 2013/04/22 14:17:35 xmw Exp $
4 xmw 1.1
5     EAPI=5
6    
7     inherit cmake-multilib eutils
8    
9     DESCRIPTION="universal and secure framework to store config parameters in a hierarchical key-value pair mechanism"
10     HOMEPAGE="http://freedesktop.org/wiki/Software/Elektra"
11     SRC_URI="ftp://ftp.markus-raab.org/${PN}/releases/${P}.tar.gz"
12    
13     LICENSE="BSD"
14     SLOT="0"
15     KEYWORDS="~amd64 ~x86"
16     IUSE="dbus doc examples iconv inifile simpleini static-libs syslog tcl test xml yajl"
17    
18     RDEPEND="!amd64? ( dev-libs/libxml2 )
19     amd64? (
20     abi_x86_64? ( dev-libs/libxml2 )
21     abi_x86_32? ( app-emulation/emul-linux-x86-baselibs ) )"
22     DEPEND="${RDEPEND}
23     !amd64? ( sys-devel/libtool )
24     doc? ( app-doc/doxygen )
25     iconv? ( virtual/libiconv )
26     !amd64? ( test? ( dev-libs/libxml2[static-libs] ) )
27     yajl? ( <dev-libs/yajl-2 )"
28    
29     src_configure() {
30     local my_plugins="ccode;dump;error;fstab;glob;hexcode;hidden;hosts;network;ni;null;path;resolver;struct;success;template;timeofday;tracer;type;validation"
31    
32     #fix QA issues with upstream patches
33     epatch "${FILESDIR}/${P}-introduce-attributes.patch"
34     epatch "${FILESDIR}/${P}-fix-yajl-if-user-config.patch"
35    
36     #move doc files to correct location
37     sed -e "s/elektra-api/${PF}/" \
38     -i cmake/ElektraCache.cmake || die
39    
40     use dbus && my_plugins+=";dbus"
41     use doc && my_plugins+=";doc"
42     use iconv && my_plugins+=";iconv"
43     use inifile && my_plugins+=";simpleini"
44     use syslog && my_plugins+=";syslog"
45     use tcl && my_plugins+=";tcl"
46     use xml && my_plugins+=";xmltool"
47     use yajl && my_plugins+=";yajl"
48    
49     mycmakeargs=(
50     "-DPLUGINS=${my_plugins}"
51     "-DLATEX_COMPILER=OFF"
52     "-DTARGET_CMAKE_FOLDER=share/cmake/Modules"
53     $(cmake-utils_use doc BUILD_DOCUMENTATION)
54     $(cmake-utils_use examples BUILD_EXAMPLES)
55     $(cmake-utils_use static-libs BUILD_STATIC)
56     $(cmake-utils_use test BUILD_TESTING)
57     )
58    
59     cmake-multilib_src_configure
60     }
61    
62     src_compile() {
63     dodir /usr/share/man/man3
64     cmake-multilib_src_compile
65     }
66    
67     src_install() {
68     cmake-multilib_src_install
69    
70     dodoc doc/{AUTHORS,CHANGES,NEWS,README,todo/TODO}
71    
72     if use doc ; then
73     rm -rf "${D}/usr/share/doc/${PF}/man" || die
74     pushd ${CMAKE_BUILD_DIR}/doc/man/man3
75     local my_f
76     for my_f in *.3 ; do
77     newman ${my_f} ${PN}-${my_f}
78     elog "installed /usr/share/man/man3/${my_f} as ${PN}-${my_f}"
79     done
80     popd
81     fi
82     }

  ViewVC Help
Powered by ViewVC 1.1.20