/[gentoo-x86]/dev-ruby/facter/facter-3.0.2-r1.ebuild
Gentoo

Contents of /dev-ruby/facter/facter-3.0.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jul 23 22:49:45 2015 UTC (3 years ago) by prometheanfire
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
signing, also, previous commit fixed bug 555624

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x33ED3FD25AFC78BA)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/facter/facter-3.0.2-r1.ebuild,v 1.1 2015/07/23 22:47:41 prometheanfire Exp $
4
5 EAPI=5
6 USE_RUBY="ruby19 ruby20 ruby21 ruby22"
7
8 inherit cmake-utils ruby-ng
9
10 DESCRIPTION="A cross-platform ruby library for retrieving facts from operating systems"
11 HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/"
12 SRC_URI="https://downloads.puppetlabs.com/facter/${P}.tar.gz"
13 S="${S}/all/${P}"
14
15 LICENSE="Apache-2.0"
16 SLOT="0"
17 IUSE="debug test"
18 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
19
20 CDEPEND="
21 >=sys-devel/gcc-4.8:*
22 >=dev-libs/boost-1.54
23 >=dev-cpp/yaml-cpp-0.5.1
24 dev-libs/openssl:*
25 sys-apps/util-linux
26 app-emulation/virt-what
27 net-misc/curl"
28
29 RDEPEND+=" ${CDEPEND}"
30 DEPEND+=" test? ( ${CDEPEND} )"
31
32 src_prepare() {
33 sed -i 's/\-Werror\ //g' "vendor/leatherman/cmake/cflags.cmake" || die
34 # Remove the code that installs facter.rb to the wrong directory.
35 sed -i '/RUBY_VENDORDIR/d' lib/CMakeLists.txt || die
36 # make it support multilib
37 sed -i 's/\ lib)/\ lib${LIB_SUFFIX})/g' lib/CMakeLists.txt || die
38 }
39
40 src_configure() {
41 local mycmakeargs=(
42 -DCMAKE_VERBOSE_MAKEFILE=ON
43 -DCMAKE_BUILD_TYPE=None
44 -DCMAKE_INSTALL_PREFIX=/usr
45 -DCMAKE_INSTALL_SYSCONFDIR=/etc
46 -DCMAKE_INSTALL_LOCALSTATEDIR=/var
47 -DUSE_JRUBY_SUPPORT=FALSE
48 )
49 if use debug; then
50 mycmakeargs+=(
51 -DCMAKE_BUILD_TYPE=Debug
52 )
53 fi
54 cmake-utils_src_configure
55 }
56
57 each_ruby_install() {
58 doruby "${BUILD_DIR}"/lib/facter.rb
59 }
60
61 src_install() {
62 cmake-utils_src_install
63 ruby-ng_src_install
64 }

  ViewVC Help
Powered by ViewVC 1.1.20