Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 92451 Details for
Bug 140840
New ebuild for libharu-1.2.3.1 (PDF library in C++)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Main libharu ebuild file
libharu-1.2.3.1.ebuild (text/plain), 2.59 KB, created by
rajkrish
on 2006-07-21 15:25:12 UTC
(
hide
)
Description:
Main libharu ebuild file
Filename:
MIME Type:
Creator:
rajkrish
Created:
2006-07-21 15:25:12 UTC
Size:
2.59 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils >IUSE="zlib png jpeg encrypt examples debug" > >DESCRIPTION="Haru is a library for c/c++ that has the ability to generate PDF." > >HOMEPAGE="http://sourceforge.net/projects/libharu" >SRC_URI="mirror://sourceforge/libharu/${PN}_1_2_3_1.tgz" > >LICENSE="ZLIB / LIBPNG" >SLOT="0" >KEYWORDS="~x86 ~amd64 ppc ~sparc" > >DEPEND="png? ( >=media-libs/libpng-1.2 ) > jpeg? ( >=media-libs/jpeg-6b ) > zlib? ( >=sys-libs/zlib-1.2 )" > >RDEPEND="${DEPEND}" > >S="${WORKDIR}/haru" > >src_unpack() >{ > unpack "${A}" > cd ${S} > cp makefile.gcc Makefile || die "Could not copy makefile.gcc to Makefile." > epatch "${FILESDIR}/${P}/Makefile.diff" > >} > >src_compile() >{ > # libharu does not use configure script. > # use the included Makefile (makefile.gcc) for processing, assuming the compiler is gcc.... > # NOTE: GCC assumed! > if /usr/bin/which gcc >& /dev/null && gcc --version >& /dev/null ; then > einfo "Using gcc for compiling libharu." > else > die "Did not find GCC compiler. This ebuild assumes the GCC compiler only (uses maiefile.gcc from libharu package)." > fi > local flagcpp="${CXXFLAGS}" > local flagc="${CFLAGS}" > local flagld="${LDFLAGS}" > local flagenc="" > > if use zlib ; then > flagld="${flagld} -lz" > else > flagcpp="${flagcpp} -DNOZLIB" > flagc="${flagc} -DNOZLIB" > fi > > if use png ; then > flagld="${flagld} -lpng" > else > flagcpp="${flagcpp} -DNOPNG" > flagc="${flagc} -DNOPNG" > fi > > if use png ; then > flagld="${flagld} -ljpeg" > else > flagcpp="${flagcpp} -DNOJPEG" > flagc="${flagc} -DNOJPEG" > fi > > if use encrypt ; then > flagenc="-DUSE_ENCRYPTION" > fi > > if use debug ; then > local dummy="" > else > flagcpp="${flagcpp} -DNDEBUG" > flagc="${flagc} -DNDEBUG" > fi > > DESTDIR="${D}" \ > MYCPPFLAGS="${flagcpp}" \ > MYCFLAGS="${flagc}" \ > MYLDFLAGS="${flagld}" \ > ENCRYPTFLAGS="${flagenc}" \ > make || die "make failed" >} > >src_install() >{ > mkdir -p "${D}"/usr/{lib,include/libharu} > DESTDIR="${D}" \ > make install || die 'install failed' > > dodoc README > if use examples ; then > einfo "Copying C++ examples ..." > cp -R ${S}/examples ${D}/usr/share/doc/${P}/ || die "Could not copy examples to ${D}/usr/share/doc/${P}/" > einfo "Copying C examples ..." > cp -R ${S}/examples_c ${D}/usr/share/doc/${P}/ || die "Could not copy examples to ${D}/usr/share/doc/${P}/" > einfo "Copying experimental examples ..." > cp -R ${S}/experimental ${D}/usr/share/doc/${P}/ || die "Could not copy examples to ${D}/usr/share/doc/${P}/" > fi >} > > >pkg_postinst() >{ > einfo "Please read the README and/or TODO files." >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 140840
:
92032
| 92451 |
92452