Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/distorm64: metadata.xml ChangeLog distorm64-1.7.30.ebuild
Date: Tue, 03 Feb 2009 23:12:41
Message-Id: E1LUURa-00036a-TL@stork.gentoo.org
1 patrick 09/02/03 23:12:38
2
3 Added: metadata.xml ChangeLog distorm64-1.7.30.ebuild
4 Log:
5 Initial import. Ebuild from Tuna <tuna@××××.org>. Closes #201148
6 (Portage version: 2.2_rc23/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-libs/distorm64/metadata.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/distorm64/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/distorm64/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>no-herd</herd>
20 <maintainer>
21 <email>patrick@g.o</email>
22 <name>Patrick Lauer</name>
23 <description>Maintainer</description>
24 </maintainer>
25 </pkgmetadata>
26
27
28
29 1.1 dev-libs/distorm64/ChangeLog
30
31 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/distorm64/ChangeLog?rev=1.1&view=markup
32 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/distorm64/ChangeLog?rev=1.1&content-type=text/plain
33
34 Index: ChangeLog
35 ===================================================================
36 # ChangeLog for dev-libs/distorm64
37 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
38 # $Header: /var/cvsroot/gentoo-x86/dev-libs/distorm64/ChangeLog,v 1.1 2009/02/03 23:12:38 patrick Exp $
39
40 *distorm64-1.7.30 (03 Feb 2009)
41
42 03 Feb 2009; Patrick Lauer <patrick@g.o> +metadata.xml,
43 +distorm64-1.7.30.ebuild:
44 Initial import. Ebuild from Tuna <tuna@××××.org>. Closes #201148
45
46
47
48
49 1.1 dev-libs/distorm64/distorm64-1.7.30.ebuild
50
51 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/distorm64/distorm64-1.7.30.ebuild?rev=1.1&view=markup
52 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/distorm64/distorm64-1.7.30.ebuild?rev=1.1&content-type=text/plain
53
54 Index: distorm64-1.7.30.ebuild
55 ===================================================================
56 # Copyright 1999-2009 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 # $Header: /var/cvsroot/gentoo-x86/dev-libs/distorm64/distorm64-1.7.30.ebuild,v 1.1 2009/02/03 23:12:38 patrick Exp $
59
60 EAPI="1"
61
62 inherit eutils
63
64 DESCRIPTION="The ultimate disassembler library (X86-32, X86-64)"
65 HOMEPAGE="http://www.ragestorm.net/distorm/"
66 SRC_URI="http://ragestorm.net/distorm/${PN}-pkg${PV}.tar.bz2"
67
68 LICENSE="BSD"
69 SLOT="0"
70 KEYWORDS="~x86 ~amd64"
71 IUSE="+python"
72
73 DEPEND="python? ( >=dev-lang/python-2.4 )"
74 RDEPEND="$DEPEND"
75
76 src_unpack() {
77 unpack ${A}
78 }
79
80 src_compile() {
81 cd "${WORKDIR}/${PN}/build/linux"
82
83 emake clib || die "make clib failed!"
84
85 if use python; then
86 emake py || die "make py failed!"
87 fi
88 }
89
90 src_install() {
91 cd "${WORKDIR}/${PN}/build/linux"
92
93 dolib.so libdistorm64.so
94
95 if use python; then
96 if has_version ">=dev-lang/python-2.5"; then
97 mkdir -p "${D}usr/lib/python2.5/site-packages/"
98 install libdistorm64.so "${D}usr/lib/python2.5/site-packages/distorm.so"
99 else
100 mkdir -p "${D}usr/lib/python2.4/site-packages/"
101 install libdistorm64.so "${D}usr/lib/python2.4/site-packages/distorm.o"
102 fi
103 fi
104
105 cd "${WORKDIR}/${PN}/"
106 mv distorm64.a libdistorm64.a
107 dolib.a libdistorm64.a
108
109 mkdir -p "${D}usr/include"
110 install distorm.h "${D}usr/include/" || die "Unable to install distorm.h"
111 }