public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* RE: [gentoo-dev] STLport ebuild
@ 2001-07-13 13:59 Sean Mitchell
  0 siblings, 0 replies; 3+ messages in thread
From: Sean Mitchell @ 2001-07-13 13:59 UTC (permalink / raw
  To: gentoo-dev

From: john.allen@online.ie [mailto:john.allen@online.ie]

> >I just create the directories I need in ${D} and then 
> populate them with a
> >couple cp -r commands. Is this okay or is there a Better Way?
>
> Maybe use the BSD install program intead of cp.

Is there a benefit to be gained by using install? It would be a lot of work
compared to the four lines I have now because of all the subdirs, but if it
adds value then I don't mind.

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
------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 3+ messages in thread
* [gentoo-dev] STLport ebuild
@ 2001-07-13 12:03 Sean Mitchell
  2001-07-13 13:26 ` john.allen
  0 siblings, 1 reply; 3+ messages in thread
From: Sean Mitchell @ 2001-07-13 12:03 UTC (permalink / raw
  To: gentoo-dev

Hi All....

Emboldened by my success with doxygen, I have ventured on to the next thing
I need in Gentoo, which is STLport.

Like doxygen, STLport is a bit of an oddball. Basically it builds a couple
library files in the build tree then leaves it to you to put the libraries
and headers somewhere.

I've set up the libraries to go in /usr/lib and the includes to go in
/usr/include/stlport. Any reason they shouldn't go there?

I just create the directories I need in ${D} and then populate them with a
couple cp -r commands. Is this okay or is there a Better Way?

Here's the ebuild:

------------------SNIP------------------
S=${WORKDIR}/${P}
DESCRIPTION="STLport is a multiplatform ANSI C++ Standard Library
implementation."

SRC_URI="http://www.stlport.org/archive/${P}.tar.gz"
HOMEPAGE="http://www.stlport.org"

src_compile()
{
   cd ${S}/src
   try make -f gcc.mak clean all
}

src_install()
{
   mkdir -p ${D}/usr/include/stlport
   mkdir -p ${D}/usr/lib
   cp -r ${S}/stlport/* ${D}/usr/include/stlport
   cp -r ${S}/lib/* ${D}/usr/lib
   dodoc README INSTALL TODO ChangeLog
}
------------------SNIP------------------

If anyone has any comments I'll update this otherwise I'll test it a bit
more and then post it to the list.

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
------------------------------------------------------------------------




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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-13 13:59 [gentoo-dev] STLport ebuild Sean Mitchell
  -- strict thread matches above, loose matches on Subject: below --
2001-07-13 12:03 Sean Mitchell
2001-07-13 13:26 ` john.allen

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