/[gentoo-x86]/dev-libs/ptypes/ptypes-2.0.2-r1.ebuild
Gentoo

Contents of /dev-libs/ptypes/ptypes-2.0.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Dec 14 11:27:18 2012 UTC (16 months ago) by ulm
Branch: MAIN
Changes since 1.3: +5 -5 lines
Fix LICENSE, see LICENSE file, bug 445260.

(Portage version: 2.1.11.37/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/ptypes/ptypes-2.0.2-r1.ebuild,v 1.3 2006/12/23 23:26:33 welp Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="PTypes (C++ Portable Types Library) is a simple alternative to the STL that includes multithreading and networking."
8 HOMEPAGE="http://www.melikyan.com/ptypes/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10
11 LICENSE="ZLIB"
12 SLOT="0"
13 KEYWORDS="amd64 x86"
14 IUSE="debug"
15
16 DEPEND=""
17 RDEPEND=""
18
19 src_unpack() {
20 unpack ${A}
21 cd "${S}"
22 epatch "${FILESDIR}/${PV}-gcc41.patch"
23 sed -i \
24 -e 's/-O2/$(CXXFLAGS)/' \
25 src/Makefile.common wshare/Makefile.common \
26 || die "sed failed"
27 }
28
29 src_compile() {
30 if ! use debug ; then
31 sed -i \
32 -e 's/^\(DDEBUG\).*/\1=/' \
33 src/Makefile.common wshare/Makefile.common \
34 || die "sed failed"
35 fi
36 emake CXX=$(tc-getCXX) CXXFLAGS="${CXXFLAGS}" || die "emake failed"
37 }
38
39 src_install() {
40 dolib lib/* || die "Installing libraries"
41 insinto /usr/include
42 doins include/* || die "Installing headers"
43 dohtml -r doc/* || die "Installing documentation"
44 }

  ViewVC Help
Powered by ViewVC 1.1.20