Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115668 - Ebuild for dev-ruby/http-access2-2.0.6
Summary: Ebuild for dev-ruby/http-access2-2.0.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-15 09:00 UTC by Markus Schirp
Modified: 2006-07-06 19:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
http-access2-2.0.6 latest (http-access2-2.0.6.ebuild,894 bytes, text/plain)
2006-06-23 15:05 UTC, Armando Di Cianno
Details
same a above, removed extraneous comments (http-access2-2.0.6.ebuild,783 bytes, text/plain)
2006-06-23 15:07 UTC, Armando Di Cianno
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Schirp 2005-12-15 09:00:41 UTC
Based on the *old* http-access2-0j-r1.ebuild, i created this one for the aktual
version of http-access (2.0.6) libary. Im not very skilled in writing ebuilds
but this works for me, so I hope this will be usefull:


inherit ruby

MY_PV=${PV//./_}
MY_P=${PN/access2/access}-${MY_PV}
DESCRIPTION="HTTP accessing library"
HOMEPAGE="http://dev.ctor.org/http-access2/"
SRC_URI="http://dev.ctor.org/download/http-access-2_0_6.tar.gz"
LICENSE="Ruby"
SLOT="0"
KEYWORDS="x86 ppc ~x86 ~amd64"
IUSE=""
USE_RUBY="any"
S=${WORKDIR}/${MY_P}

src_unpack() {
        unpack ${A}
        cd ${S}
}

src_compile() {
        sed -i -e "s%^DSTPATH = %DSTPATH = \"${D}\" + %" install.rb
}
Comment 1 Markus Schirp 2005-12-15 13:41:45 UTC
(In reply to comment #0)
> Based on the *old* http-access2-0j-r1.ebuild, i created this one for the aktual
> version of http-access (2.0.6) libary. Im not very skilled in writing ebuilds
> but this works for me, so I hope this will be usefull:
> 
> 
> inherit ruby
> 
> MY_PV=${PV//./_}
> MY_P=${PN/access2/access}-${MY_PV}
> DESCRIPTION="HTTP accessing library"
> HOMEPAGE="http://dev.ctor.org/http-access2/"
> SRC_URI="http://dev.ctor.org/download/http-access-2_0_6.tar.gz"
> LICENSE="Ruby"
> SLOT="0"
> KEYWORDS="x86 ppc ~x86 ~amd64"
> IUSE=""
> USE_RUBY="any"
> S=${WORKDIR}/${MY_P}
> 
> src_unpack() {
>         unpack ${A}
>         cd ${S}
> }
> 
> src_compile() {
>         sed -i -e "s%^DSTPATH = %DSTPATH = \"${D}\" + %" install.rb
> }


Sry i had posted a broken ebuild, and I cannot find the working one anymore
(played around)...
Sry for spamming...
Comment 2 Markus Schirp 2005-12-15 14:22:06 UTC
Im a Bugzilla NOOOOB so i copyed & pasted it here
Hopeing this will be usefull for some person: 

This is the working one: 


inherit ruby

MY_PV=${PV//./_}
MY_P=${PN/access2/access}-${MY_PV}
DESCRIPTION="HTTP accessing library"
HOMEPAGE="http://dev.ctor.org/http-access2/"
SRC_URI="http://dev.ctor.org/download/http-access-2_0_6.tar.gz"
LICENSE="Ruby"
SLOT="0"
KEYWORDS="x86 ppc ~x86 ~amd64"
IUSE=""
USE_RUBY="any"
S=${WORKDIR}/${MY_P}

src_unpack()
        {
        unpack ${A}
        cd ${S}
        sed -i -e "s%^SITELIBDIR = %SITELIBDIR = '${D}' + %" install.rb
        #       Could not create the dir here, why the ${D} dir is cleaned after
each src_function ?!
        }
src_compile()
        {
        einfo "Nothing to compile"                      # Overwriting the
inherited function, it calls "ruby install.rb" but we have to create the
"/usr/lib/ruby/site_ruby/${VERSION} dir first
        }
src_install()
        {
        mkdir -p "${D}/usr/lib/ruby/site_ruby/1.8/"     # Creating the image dir
structure by hand, the install.rb does not do this,I knew specifying a Version
is bad, but i do not know a better solution
        cd ${S}
        ruby install.rb                                 # And finally run the
installer
        }
Comment 3 Armando Di Cianno 2006-06-23 15:05:41 UTC
Created attachment 89952 [details]
http-access2-2.0.6 latest

- fixes of the above ebuild
- gets site_ruby directory from ruby binary
- still missing way to get version (1.8), so hardcoded
- installs sample files on USE 'examples'
Comment 4 Armando Di Cianno 2006-06-23 15:07:19 UTC
Created attachment 89953 [details]
same a above, removed extraneous comments

same as above
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-07-06 19:57:35 UTC
Thanks Markus and Armando, I've added the ebuild now to portage.