blob: 2bbdc5afd184679a8ccd60c6abd08a51353077c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/http-access2/http-access2-2.0.6.ebuild,v 1.1 2006/07/07 02:56:33 flameeyes Exp $
inherit ruby
MY_PV=${PV//./_}
MY_PN=${PN/2}
MY_P=${MY_PN}-${MY_PV}
DESCRIPTION="'http-access2' gives something like the functionality of libwww-perl (LWP) in Ruby"
HOMEPAGE="http://dev.ctor.org/http-access2/"
SRC_URI="http://dev.ctor.org/download/${MY_P}.tar.gz"
LICENSE="Ruby"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~x86 ~x86-fbsd"
IUSE=""
USE_RUBY="any"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e "s%^SITELIBDIR = %SITELIBDIR = \"${D}\" + %" install.rb
}
src_compile() {
einfo "nothing to compile"
}
src_install() {
my_sitedir=$(ruby -rrbconfig -e 'print Config::CONFIG["sitedir"]')
mkdir -p "${D}/${my_sitedir}/1.8"
ruby install.rb
erubydoc
}
|