public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] ebuild for doxygen
@ 2001-07-12 13:44 Sean Mitchell
  2001-07-12 14:32 ` Daniel Robbins
  2001-07-12 14:37 ` Ben Lutgens
  0 siblings, 2 replies; 7+ messages in thread
From: Sean Mitchell @ 2001-07-12 13:44 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 726 bytes --]

 <<doxygen-1.2.8.1.ebuild>> 

This is my first attempt at an ebuild. It builds and installs fine, but when
I unmerge it there are leftovers (specifically /usr/bin/doxy*). Should I be
using doexe or exeinto? If so what's the syntax?

Cheers,

Sean


------------------------------------------------------------------------
 Sean Mitchell                                        Software Engineer
 smitchell@phoenix-interactive.com       Phoenix Interactive Design Inc
 tel. 519-679-2913 x237                        4th Floor, 137 Dundas St
 fax. 519 679 6773                          London, ON, Canada  N6A 1E9
                           ICQ# 104246806
------------------------------------------------------------------------


[-- Attachment #2: doxygen-1.2.8.1.ebuild --]
[-- Type: application/octet-stream, Size: 714 bytes --]

# Author Sean Mitchell <sean@arawak.on.ca>

S=${WORKDIR}/${P}
DESCRIPTION="Doxygen is a documentation system for C++, Java, IDL (Corba, Microsoft and KDE-DCOP flavors) and C"

SRC_URI="ftp://ftp.stack.nl/pub/users/dimitri/doxygen-1.2.8.1.src.tar.gz"
HOMEPAGE="http://www.stack.nl/~dimitri/doxygen"

DEPEND="qt? ( >=x11-libs/qt-x11-2.2.1 )"

src_compile()
{
  if [ "`use qt`" ]
  then
      CONFIGURE_OPTIONS="--install install --prefix /usr --with-doxywizard"
   else
      CONFIGURE_OPTIONS="--install install --prefix /usr"
   fi

   try ./configure ${CONFIGURE_OPTIONS}
   try make CFLAGS=\"${CFLAGS} -Wall\" all
}

src_install()
{
   try make install
   dodoc README VERSION LICENSE LANGUAGE.HOWTO PLATFORMS
}

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] ebuild for doxygen
  2001-07-12 13:44 Sean Mitchell
@ 2001-07-12 14:32 ` Daniel Robbins
  2001-07-12 14:37 ` Ben Lutgens
  1 sibling, 0 replies; 7+ messages in thread
From: Daniel Robbins @ 2001-07-12 14:32 UTC (permalink / raw
  To: gentoo-dev

On Thu, Jul 12, 2001 at 03:39:54PM -0400, Sean Mitchell wrote:
>  <<doxygen-1.2.8.1.ebuild>> 
> 
> This is my first attempt at an ebuild. It builds and installs fine, but when
> I unmerge it there are leftovers (specifically /usr/bin/doxy*). Should I be
> using doexe or exeinto? If so what's the syntax?

The problem is that you are simply doing a "make install", which is incorrect.
You'll notice that all of our ebuilds on CVS that use "make install" use a
special technique to make sure that the files end up at the ${D} root, which is
a temporary directory that contains an image of all the files to be installed
at /.  Your ebuild needs to do this too; you should study the install: portion
of the doxygen Makefile to see if overriding "prefix" or "DESTDIR" will do the
trick.  Then, Portage will be making the modifications to the root filesystem,
rather than your "make install", and will thus record md5sums on everything
that it installs.

Best Regards,

-- 
Daniel Robbins					<drobbins@gentoo.org>
President/CEO					http://www.gentoo.org 
Gentoo Technologies, Inc.			



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] ebuild for doxygen
  2001-07-12 13:44 Sean Mitchell
  2001-07-12 14:32 ` Daniel Robbins
@ 2001-07-12 14:37 ` Ben Lutgens
  1 sibling, 0 replies; 7+ messages in thread
From: Ben Lutgens @ 2001-07-12 14:37 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1577 bytes --]

On Thu, Jul 12, 2001 at 03:39:54PM -0400, Sean Mitchell wrote:
> <<doxygen-1.2.8.1.ebuild>> 
>
>This is my first attempt at an ebuild. It builds and installs fine, but when
>I unmerge it there are leftovers (specifically /usr/bin/doxy*). Should I be
>using doexe or exeinto? If so what's the syntax?

YOu need to read the Makefile. Look in the install: target for the
possibility of using DESTDIR or prefix. The idea is you wanna tell the
makefile that the destination dir is ${D}  this will cause everything to
be initally installed by make into /tmp/portage/$PN/image, where it can
then be packaged up and then properly "merged" into the system.

Overall I think your ebuild look o.k. (I confess I didn't test it) but
the bottom line is that you _have_ to install to ${D} or else there's no
hope of "unmerge"ing the stuff later. 

Please see "man 5 ebuild" as it contains a veritable wealth of
information. 

I'll test this now.

>
>Cheers,
>
>Sean
>
>
>------------------------------------------------------------------------
> Sean Mitchell                                        Software Engineer
> smitchell@phoenix-interactive.com       Phoenix Interactive Design Inc
> tel. 519-679-2913 x237                        4th Floor, 137 Dundas St
> fax. 519 679 6773                          London, ON, Canada  N6A 1E9
>                           ICQ# 104246806
>------------------------------------------------------------------------
>



-- 
Ben Lutgens		
Sistina Software Inc.	
Kernel panic: I have no root and I want to scream

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [gentoo-dev] ebuild for doxygen
@ 2001-07-13  7:01 Sean Mitchell
  2001-07-13  7:27 ` Ben Lutgens
  0 siblings, 1 reply; 7+ messages in thread
From: Sean Mitchell @ 2001-07-13  7:01 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1591 bytes --]

> -----Original Message-----
> From: Ben Lutgens [mailto:blutgens@sistina.com]
> Sent: Thursday, July 12, 2001 4:36 PM
> To: gentoo-dev@cvs.gentoo.org
> Subject: Re: [gentoo-dev] ebuild for doxygen

> YOu need to read the Makefile. Look in the install: target for the
> possibility of using DESTDIR or prefix. The idea is you wanna tell the
> makefile that the destination dir is ${D}  this will cause 
> everything to
> be initally installed by make into /tmp/portage/$PN/image, 
> where it can
> then be packaged up and then properly "merged" into the system.
> 
> Overall I think your ebuild look o.k. (I confess I didn't test it) but
> the bottom line is that you _have_ to install to ${D} or else 
> there's no
> hope of "unmerge"ing the stuff later. 

My thanks to you and Dan for helping me out here. I've attached the updated
ebuild which now uses QT if defined as a USE and properly installs and
uninstalls.
 
> Please see "man 5 ebuild" as it contains a veritable wealth of
> information. 

And so it does. You'd think after a year of OpenBSD I'd have checked "man 5"
and not just "man".

Cheers,

Sean

------------------------------------------------------------------------
 Sean Mitchell                                        Software Engineer
 smitchell@phoenix-interactive.com       Phoenix Interactive Design Inc
 tel. 519-679-2913 x237                        4th Floor, 137 Dundas St
 fax. 519 679 6773                          London, ON, Canada  N6A 1E9
                           ICQ# 104246806
------------------------------------------------------------------------


[-- Attachment #2: doxygen-1.2.8.1.ebuild --]
[-- Type: application/octet-stream, Size: 724 bytes --]

# Author Sean Mitchell <sean@arawak.on.ca>

S=${WORKDIR}/${P}
DESCRIPTION="Doxygen is a documentation system for C++, Java, IDL (Corba, Microsoft and KDE-DCOP flavors) and C"

SRC_URI="ftp://ftp.stack.nl/pub/users/dimitri/doxygen-1.2.8.1.src.tar.gz"
HOMEPAGE="http://www.stack.nl/~dimitri/doxygen"

DEPEND="qt? ( >=x11-libs/qt-x11-2.2.1 )"

src_compile()
{
   if [ "`use qt`" ]
   then
      CONFIGURE_OPTIONS="--install install --prefix ${D}/usr --with-doxywizard"
   else
      CONFIGURE_OPTIONS="--install install --prefix ${D}/usr"
   fi

   try ./configure ${CONFIGURE_OPTIONS}
   try make CFLAGS=\"${CFLAGS} -Wall\" all
}

src_install()
{
   try make install
   dodoc README VERSION LICENSE LANGUAGE.HOWTO PLATFORMS
}

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] ebuild for doxygen
  2001-07-13  7:01 Sean Mitchell
@ 2001-07-13  7:27 ` Ben Lutgens
  0 siblings, 0 replies; 7+ messages in thread
From: Ben Lutgens @ 2001-07-13  7:27 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1957 bytes --]

On Fri, Jul 13, 2001 at 08:57:33AM -0400, Sean Mitchell wrote:
>> -----Original Message-----
>> From: Ben Lutgens [mailto:blutgens@sistina.com]
>> Sent: Thursday, July 12, 2001 4:36 PM
>> To: gentoo-dev@cvs.gentoo.org
>> Subject: Re: [gentoo-dev] ebuild for doxygen
>
>> YOu need to read the Makefile. Look in the install: target for the
>> possibility of using DESTDIR or prefix. The idea is you wanna tell the
>> makefile that the destination dir is ${D}  this will cause 
>> everything to
>> be initally installed by make into /tmp/portage/$PN/image, 
>> where it can
>> then be packaged up and then properly "merged" into the system.
>> 
>> Overall I think your ebuild look o.k. (I confess I didn't test it) but
>> the bottom line is that you _have_ to install to ${D} or else 
>> there's no
>> hope of "unmerge"ing the stuff later. 
>
>My thanks to you and Dan for helping me out here. I've attached the updated
>ebuild which now uses QT if defined as a USE and properly installs and
>uninstalls.

K, I'll look it over. I tinkered with it yesterday but gave up. What an
ugly build tree that package is. 

>> Please see "man 5 ebuild" as it contains a veritable wealth of
>> information. 
>
>And so it does. You'd think after a year of OpenBSD I'd have checked "man 5"
>and not just "man".

Hehe.

>
>Cheers,
>
>Sean
>
>------------------------------------------------------------------------
> Sean Mitchell                                        Software Engineer
> smitchell@phoenix-interactive.com       Phoenix Interactive Design Inc
> tel. 519-679-2913 x237                        4th Floor, 137 Dundas St
> fax. 519 679 6773                          London, ON, Canada  N6A 1E9
>                           ICQ# 104246806
>------------------------------------------------------------------------
>



-- 
Ben Lutgens		
Sistina Software Inc.	
Kernel panic: I have no root and I want to scream

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [gentoo-dev] ebuild for doxygen
@ 2001-07-13  7:48 Sean Mitchell
  2001-07-13  8:00 ` Ben Lutgens
  0 siblings, 1 reply; 7+ messages in thread
From: Sean Mitchell @ 2001-07-13  7:48 UTC (permalink / raw
  To: gentoo-dev

> -----Original Message-----
> From: Ben Lutgens [mailto:blutgens@sistina.com]

> K, I'll look it over. I tinkered with it yesterday but gave 
> up. What an ugly build tree that package is. 

Yeah.... I think he does that to keep MSVC and Borland and all the rest
separate.

I'd appreciate any comments on how to improve it. I have changed 

 SRC_URI="ftp://ftp.stack.nl/pub/users/dimitri/doxygen-1.2.8.1.src.tar.gz"

to

 SRC_URI="ftp://ftp.stack.nl/pub/users/dimitri/${P}.src.tar.gz"

but I'm sure there are other things I could do.


I'm on the Doxygen mailing list, so I'll hover over this ebuild and post
updates as new versions come out.


Sean 



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] ebuild for doxygen
  2001-07-13  7:48 [gentoo-dev] ebuild for doxygen Sean Mitchell
@ 2001-07-13  8:00 ` Ben Lutgens
  0 siblings, 0 replies; 7+ messages in thread
From: Ben Lutgens @ 2001-07-13  8:00 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1484 bytes --]

On Fri, Jul 13, 2001 at 09:43:53AM -0400, Sean Mitchell wrote:
>
>> -----Original Message-----
>> From: Ben Lutgens [mailto:blutgens@sistina.com]
>
>> K, I'll look it over. I tinkered with it yesterday but gave 
>> up. What an ugly build tree that package is. 
>
>Yeah.... I think he does that to keep MSVC and Borland and all the rest
>separate.
>
>I'd appreciate any comments on how to improve it. I have changed 
>
> SRC_URI="ftp://ftp.stack.nl/pub/users/dimitri/doxygen-1.2.8.1.src.tar.gz"


you could have saved yourself some work by doing
src_compile() {

    local myconf
    if [ "`use qt`" ]; then
        myconf="--with-doxywizard"
    fi

    try ./configure --install install --prefix ${D}/usr ${myconf}
    try make all  # let cflags come from /etc/make.conf
}

Other than that it looks good provided you didn't want to compile the
docs and install them, it gets a little trickier there since the Makefile
blows goats.


>
>to
>
> SRC_URI="ftp://ftp.stack.nl/pub/users/dimitri/${P}.src.tar.gz"
>
>but I'm sure there are other things I could do.
>
>
>I'm on the Doxygen mailing list, so I'll hover over this ebuild and post
>updates as new versions come out.
>
>
>Sean 
>
>_______________________________________________
>gentoo-dev mailing list
>gentoo-dev@cvs.gentoo.org
>http://cvs.gentoo.org/mailman/listinfo/gentoo-dev

-- 
Ben Lutgens		
Sistina Software Inc.	
Kernel panic: I have no root and I want to scream

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-07-13 13:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-13  7:48 [gentoo-dev] ebuild for doxygen Sean Mitchell
2001-07-13  8:00 ` Ben Lutgens
  -- strict thread matches above, loose matches on Subject: below --
2001-07-13  7:01 Sean Mitchell
2001-07-13  7:27 ` Ben Lutgens
2001-07-12 13:44 Sean Mitchell
2001-07-12 14:32 ` Daniel Robbins
2001-07-12 14:37 ` Ben Lutgens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox