Gentoo Archives: gentoo-commits

From: "Samuli Suominen (drac)" <drac@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/hrktorrent: hrktorrent-0.2.2.ebuild ChangeLog
Date: Mon, 26 Nov 2007 19:32:57
Message-Id: E1IwjhG-0000Oo-UT@stork.gentoo.org
1 drac 07/11/26 19:32:46
2
3 Modified: hrktorrent-0.2.2.ebuild ChangeLog
4 Log:
5 Makefile was confusing LDFLAGS with LIBS, CFLAGS with CXXFLAGS, add a patch for it. Keyword ~amd64 wrt #200409.
6 (Portage version: 2.1.4_rc3)
7
8 Revision Changes Path
9 1.2 net-p2p/hrktorrent/hrktorrent-0.2.2.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/hrktorrent/hrktorrent-0.2.2.ebuild?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/hrktorrent/hrktorrent-0.2.2.ebuild?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/hrktorrent/hrktorrent-0.2.2.ebuild?r1=1.1&r2=1.2
14
15 Index: hrktorrent-0.2.2.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/net-p2p/hrktorrent/hrktorrent-0.2.2.ebuild,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- hrktorrent-0.2.2.ebuild 26 Nov 2007 17:46:17 -0000 1.1
22 +++ hrktorrent-0.2.2.ebuild 26 Nov 2007 19:32:46 -0000 1.2
23 @@ -1,41 +1,45 @@
24 # Copyright 1999-2007 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/hrktorrent/hrktorrent-0.2.2.ebuild,v 1.1 2007/11/26 17:46:17 armin76 Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/hrktorrent/hrktorrent-0.2.2.ebuild,v 1.2 2007/11/26 19:32:46 drac Exp $
28
29 -inherit toolchain-funcs
30 +inherit eutils toolchain-funcs
31
32 DESCRIPTION="A slim rb_libtorrent based console torrent application supporting DHT"
33 -HOMEPAGE="http://henrik.unit5.ca/hrktorrent/"
34 -SRC_URI="http://henrik.unit5.ca/hrktorrent/${P}.tar.bz2"
35 +HOMEPAGE="http://henrik.unit5.ca/hrktorrent"
36 +SRC_URI="http://henrik.unit5.ca/${PN}/${P}.tar.bz2"
37
38 LICENSE="BSD"
39 SLOT="0"
40 -KEYWORDS="~x86"
41 +KEYWORDS="~amd64 ~x86"
42 IUSE=""
43
44 -RDEPEND="dev-cpp/asio
45 - =net-libs/rb_libtorrent-0.12"
46 -DEPEND="${RDEPEND}"
47 +RDEPEND="=net-libs/rb_libtorrent-0.12*"
48 +DEPEND="${RDEPEND}
49 + dev-cpp/asio
50 + dev-util/pkgconfig"
51
52 src_unpack() {
53 unpack ${A}
54 cd "${S}"
55 + # Makefile is confusing LIBS with LDFLAGS and CFLAGS with CXXFLAGS.
56 + epatch "${FILESDIR}"/${P}-Makefile.patch
57 +}
58
59 - # Respect CFLAGS, call g++ correctly, and don't strip
60 - sed -i -e "s/-O2 -pipe/${CFLAGS}/g" -e "s/g++/$(tc-getCXX)/g" \
61 - -e "s/-lpthread -s/-lpthread/g" -e "s/\$(C) -c/\$(C) \$(CFLAGS) -c/g" \
62 - Makefile || die "sed failed"
63 +src_compile() {
64 + emake CXX="$(tc-getCXX)" || die "emake failed."
65 }
66
67 src_install() {
68 - dodir /usr/bin
69 - cp "${WORKDIR}/${P}/hrktorrent" "${D}/usr/bin" || die "install failed"
70 - dodoc CHANGELOG README hrktorrent.rc.example
71 + dobin ${PN}
72 + doman ${PN}.1
73 + dodoc CHANGELOG README ${PN}.rc.example
74 }
75
76 pkg_postinst() {
77 - elog "A sample configuration file for ${PN} can be found"
78 - elog "in /usr/share/doc/${PF}/hrktorrent.rc.example.{gz,bz2}"
79 + local docsuffix=$(ecompress --suffix)
80 +
81 + elog "A sample configuration file for ${PN} can be found in"
82 + elog "/usr/share/doc/${PF}/hrktorrent.rc.example${docsuffix}"
83 elog "To use a config file, extract it, put it in your home directory"
84 elog "and name it \".hrktorrent.rc\""
85 }
86
87
88
89 1.3 net-p2p/hrktorrent/ChangeLog
90
91 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/hrktorrent/ChangeLog?rev=1.3&view=markup
92 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/hrktorrent/ChangeLog?rev=1.3&content-type=text/plain
93 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/hrktorrent/ChangeLog?r1=1.2&r2=1.3
94
95 Index: ChangeLog
96 ===================================================================
97 RCS file: /var/cvsroot/gentoo-x86/net-p2p/hrktorrent/ChangeLog,v
98 retrieving revision 1.2
99 retrieving revision 1.3
100 diff -u -r1.2 -r1.3
101 --- ChangeLog 26 Nov 2007 17:46:17 -0000 1.2
102 +++ ChangeLog 26 Nov 2007 19:32:46 -0000 1.3
103 @@ -1,6 +1,11 @@
104 # ChangeLog for net-p2p/hrktorrent
105 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
106 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/hrktorrent/ChangeLog,v 1.2 2007/11/26 17:46:17 armin76 Exp $
107 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/hrktorrent/ChangeLog,v 1.3 2007/11/26 19:32:46 drac Exp $
108 +
109 + 26 Nov 2007; Samuli Suominen <drac@g.o>
110 + +files/hrktorrent-0.2.2-Makefile.patch, hrktorrent-0.2.2.ebuild:
111 + Makefile was confusing LDFLAGS with LIBS, CFLAGS with CXXFLAGS, add a patch
112 + for it. Keyword ~amd64 wrt #200409.
113
114 *hrktorrent-0.2.2 (26 Nov 2007)
115
116
117
118
119 --
120 gentoo-commits@g.o mailing list