Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Made my very first ebuild and I want to share it :)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Emperor
n00b
n00b


Joined: 09 Jul 2002
Posts: 54
Location: Enschede, The Netherlands

PostPosted: Sat Aug 24, 2002 2:15 am    Post subject: Made my very first ebuild and I want to share it :) Reply with quote

I just make my first working ebuild. It installs OOodi, a small little gui util to install dictionaries for openoffice.org. (details: http://ooodi.sourceforge.net/ )

i have 3 questions:

1:
I would like to make this available in the portagetree for everyone. What must i do to get that done?

2:
I am not quite sure where this should be in the portage tree. My first thought was /usr/portage/app-office/openoffice . But i noticed the ebuild would not work if i put it there.
So now i am testing it (at home) on /usr/portage/app-text/OOodi because other spelling/dict tools are there as well. Sounds OK?

3:
The package does not realy need openoffice.org to compile. But without it, its kinda useless :). So, should I add openoffice as a dependency? I havent now because its not needed to compile, according to the readme.

For the ones that want it now:


Code:
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

# NOTE: This is my first ebuild, se be kind :)

DESCRIPTION="OpenOffice.org Dictionary Installer is a easy to use tool to install language dictionaries for OpenOffice.org"

HOMEPAGE="http://ooodi.sourceforge.net/"

SRC_URI="http://unc.dl.sourceforge.net/sourceforge/ooodi/OOodi-0.55.tar.gz"

LICENSE="LGPL-2.1"

SLOT="0"

KEYWORDS="x86"

DEPEND="virtual/glibc
   gtk? ( >=gtk+-1.2.10-r8 )
   >=net-ftp/curl-7.9.7"


S="${WORKDIR}/${P}"

src_unpack() {

   unpack ${P}.tar.gz

}

src_compile() {

   ./configure \
      --host=${CHOST} \
      --prefix=/usr \
      --infodir=/usr/share/info \
      --mandir=/usr/share/man || die "./configure failed"

   emake || die
}

src_install () {
   make DESTDIR=${D} install || die
}


As you can see, a simple fill-in procedure :)
_________________
What is this "signature" thing you are talking about?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Aug 24, 2002 2:53 am    Post subject: Re: Made my very first ebuild and I want to share it :) Reply with quote

Emperor wrote:
I just make my first working ebuild.

Congratulations and thanks.

Quote:
I would like to make this available in the portagetree for everyone. What must i do to get that done?

Follow the directions in http://gentoo.org/doc/en/ebuild-submit.xml.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Emperor
n00b
n00b


Joined: 09 Jul 2002
Posts: 54
Location: Enschede, The Netherlands

PostPosted: Sat Aug 24, 2002 3:32 am    Post subject: Reply with quote

thx

I have been looking for a link like that, but i must be stirr blind or something cuz only now i see it :p

Maybe it would be nice to mention this link in the end of http://www.gentoo.org/doc/gentoo-howto.html .
_________________
What is this "signature" thing you are talking about?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum