[Gentoo] ebuild writing

Pagina: 1
Acties:

  • Siebz0r
  • Registratie: Juli 2007
  • Laatst online: 22-06-2018

Siebz0r

Got root?

Topicstarter
Voor de 4 a 5e keer ben ik bezig met het schrijven van een ebuild.
Nu lukt het me weer niet en nu ga ik het toch eens vragen aan de meer ervaren Linux-er.

Ik ben een ebuild aan het schrijven voor een odf (docx) converter.

ebuild:
code:
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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"
inherit eutils

DESCRIPTION="Open MS Office 2007 files (docx, xlsx, pptx) in OpenOffice.org"
SRC_URI="http://katana.oooninja.com/f/software/${P}.tar.bz2"
HOMEPAGE="http://katana.oooninja.com/w/odf-converter-integrator"
KEYWORDS="~x86"
SLOT="0"
LICENCE="GPL-3"
IUSE=""

src_unpack() {
        if [ "${A}" != "" ]; then
                unpack ${A}
        fi
}

src_compile(){
        einfo "Nothing to compile"
}

scr_install(){
        cp -R "${S}" "${D}"
}

Het installeren van de converter is simpelweg het uitpakken van de tarball en copieren naar / omdat de tarball een map bevat "usr".

Wat de ebuild wel doet: unpacken naar de work dir "${S}" maar de "image" dir blijft leeg :(
Iemand meer verstand van dit gebeuren?

  • laurencevde
  • Registratie: November 2001
  • Laatst online: 02-10-2025
scr_install()

tiepvout :)

Have a taste of freedom. It is sometimes a bitter pill. To me though, this is the sweetness of the GPL


  • Siebz0r
  • Registratie: Juli 2007
  • Laatst online: 22-06-2018

Siebz0r

Got root?

Topicstarter
OMG! maandag-ochtend scripting op dinsdag...

eindresultaat:
code:
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
# Copyright 1999-2006 Gentoo Foundation                                     
# Distributed under the terms of the GNU General Public License v2          
# $Header: $                                                                

EAPI="2"
inherit eutils

DESCRIPTION="Open MS Office 2007 files (docx, xlsx, pptx) in OpenOffice.org"
SRC_URI="http://katana.oooninja.com/f/software/${P}.tar.bz2"                
HOMEPAGE="http://katana.oooninja.com/w/odf-converter-integrator"            
KEYWORDS="~x86"
SLOT="0"
LICENCE="GPL-3"
IUSE=""

src_unpack() {
        if [ "${A}" != "" ]; then
                unpack ${A}
        fi
}

src_compile(){
        einfo "Nothing to compile"
}

src_install(){
        cp -R "${S}/"* "${D}"
}


kan die wildcard op het einde niet anders btw?