block open_c-lit #110567
authorMike Frysinger <vapier@gentoo.org>
Thu, 27 Oct 2005 00:32:24 +0000 (00:32 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 27 Oct 2005 00:32:24 +0000 (00:32 +0000)
Package-Manager: portage-2.0.53_rc6

app-text/convertlit/convertlit-1.8.ebuild

index 7a5a90b4b9add78040035e8422dea0b45ab858d4..c4ed38615025abf28782ba8691d07e230431e11f 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/convertlit/convertlit-1.8.ebuild,v 1.7 2005/10/11 18:40:42 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/convertlit/convertlit-1.8.ebuild,v 1.8 2005/10/27 00:32:24 vapier Exp $
 
 MY_P="clit${PV//./}"
 
@@ -10,22 +10,22 @@ SRC_URI="http://www.convertlit.com/${MY_P}src.zip"
 
 LICENSE="GPL-2"
 SLOT="0"
-
 KEYWORDS="amd64 ppc ~ppc-macos x86"
+IUSE=""
+
 DEPEND="dev-libs/libtommath
        >=sys-apps/sed-4
        app-arch/unzip"
-RDEPEND=""     # link libtommath statically
-IUSE=""
+RDEPEND="!app-text/open_c-lit" # link libtommath statically
 
 S=${WORKDIR}
 
 src_compile() {
-       cd ${S}/lib
+       cd "${S}"/lib
        sed -i -e "/^CFLAGS/s/-O3 -Wall/${CFLAGS}/" Makefile \
                || die "sed lib/Makefile failed."
        emake || die "make lib failed"
-       cd ${S}/${MY_P}
+       cd "${S}"/${MY_P}
        sed -i -e "/^CFLAGS/s:-Wall -O2:${CFLAGS}:" \
                -e "s:../libtommath-0.30:/usr/lib:g" Makefile \
                || die "sed ${MY_P}/Makefile failed."
@@ -33,6 +33,6 @@ src_compile() {
 }
 
 src_install() {
-       dobin ${S}/${MY_P}/clit
-       dodoc ${S}/README
+       dobin ${MY_P}/clit || die
+       dodoc README
 }