/[gentoo-x86]/app-misc/hivex/hivex-1.3.11.ebuild
Gentoo

Contents of /app-misc/hivex/hivex-1.3.11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Mar 26 20:28:10 2015 UTC (5 years, 3 months ago) by zerochaos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +5 -4 lines
remember to dep on rubygems

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/hivex/hivex-1.3.11.ebuild,v 1.6 2015/03/16 14:40:42 zerochaos Exp $
4
5 EAPI=5
6
7 AUTOTOOLS_IN_SOURCE_BUILD=1
8
9 USE_RUBY="ruby20"
10 RUBY_OPTIONAL=yes
11
12 PYTHON_COMPAT=(python2_7 python3_{3,4})
13
14 inherit autotools-utils eutils perl-app ruby-ng python-single-r1
15
16 DESCRIPTION="Library for reading and writing Windows Registry 'hive' binary files"
17 HOMEPAGE="http://libguestfs.org"
18 SRC_URI="http://libguestfs.org/download/${PN}/${P}.tar.gz"
19
20 LICENSE="LGPL-2.1"
21 SLOT="0"
22 KEYWORDS="amd64 x86"
23 IUSE="ocaml readline +perl python test static-libs ruby"
24
25 RDEPEND="
26 virtual/libiconv
27 virtual/libintl
28 dev-libs/libxml2:2
29 ocaml? ( dev-lang/ocaml[ocamlopt]
30 dev-ml/findlib[ocamlopt]
31 )
32 readline? ( sys-libs/readline )
33 perl? ( dev-perl/IO-stringy )
34 ruby? ( $(ruby_implementations_depend) )
35 python? ( ${PYTHON_DEPS} )
36 "
37
38 DEPEND="${RDEPEND}
39 dev-lang/perl
40 perl? (
41 test? ( dev-perl/Pod-Coverage
42 dev-perl/Test-Pod-Coverage )
43 )
44 "
45 ruby_add_bdepend "ruby? ( dev-ruby/rake
46 virtual/rubygems
47 dev-ruby/rdoc )"
48 ruby_add_rdepend "ruby? ( virtual/rubygems )"
49
50 REQUIRED_USE="python? ( ${PYTHON_REQ_USE} )"
51
52 DOCS=( README )
53 S="${WORKDIR}/${P}"
54
55 #We are aware of rather poor quality of this ebuild, but the bump is required to fix security bug. We will fix other matters later.
56
57 pkg_setup() {
58 if use python; then
59 python-single-r1_pkg_setup
60 fi
61 if use perl; then
62 perl_set_version
63 fi
64 }
65
66 src_unpack() {
67 default
68 }
69
70 src_prepare() {
71 epatch_user
72 }
73
74 src_configure() {
75 local myeconfargs=(
76 $(use_with readline)
77 $(use_enable ocaml)
78 $(use_enable perl)
79 --enable-nls
80 $(use_enable python)
81 $(use_enable ruby)
82 --disable-rpath )
83
84 autotools-utils_src_configure
85
86 if use perl; then
87 pushd perl
88 perl-app_src_configure
89 popd
90 fi
91 }
92
93 src_compile() {
94 autotools-utils_src_compile
95 }
96
97 # Test binding's dont't wok properly in gentoo layout
98 #src_test() {
99 # if use perl;then
100 # pushd perl
101 # perl-app_src_install
102 # popd
103 # fi
104 #
105 # autotools-utils_src_compile check
106 #}
107
108 src_install() {
109 strip-linguas -i po
110
111 autotools-utils_src_install "LINGUAS=""${LINGUAS}"""
112
113 if use perl; then
114 perl_delete_localpod
115 fi
116 }

  ViewVC Help
Powered by ViewVC 1.1.20