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 }
(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...
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 }
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'
Created attachment 89953 [details] same a above, removed extraneous comments same as above
Thanks Markus and Armando, I've added the ebuild now to portage.