econf + CXXFLAGS fix
authorSeemant Kulleen <seemant@gentoo.org>
Thu, 7 Nov 2002 07:28:41 +0000 (07:28 +0000)
committerSeemant Kulleen <seemant@gentoo.org>
Thu, 7 Nov 2002 07:28:41 +0000 (07:28 +0000)
app-office/texmacs/ChangeLog
app-office/texmacs/texmacs-1.0.0.19.ebuild

index 62e7c21826b9359f44e04e7cc78a1335b984d400..2161bf4567213b6fbd2064f68ec198ac325b26ef 100644 (file)
@@ -1,9 +1,15 @@
 # ChangeLog for app-office/texmacs
 # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/app-office/texmacs/ChangeLog,v 1.4 2002/10/24 02:45:40 satai Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/texmacs/ChangeLog,v 1.5 2002/11/07 07:28:41 seemant Exp $
 
 *texmacs-1.0.0.19 (23 Oct 2002)
 
+  06 Nov 2002; Seemant Kulleen <seemant@gentoo.org> texmacs-1.0.0.19.ebuild :
+
+  Changed to use econf so things get installed in the correct locations 
+  and custom CXXFLAGS settings.  Closes bug #10220 by:
+  jap1@ionet.net (Jacob Perkins)
+
   23 Oct 2002; Matthew Turk <satai@gentoo.org> :
 
   New version, testing.  Changing to unstable.
index 34097d8e2b5b87ba15b12bad8a62703b08b620a2..05feb8135f963cd83517bde42592b14bd8310fda 100644 (file)
@@ -2,9 +2,10 @@
 # Distributed under the terms of the GNU General Public License v2
 # /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.3 2002/02/04 15:46:51 gbevin Exp
 
-S=${WORKDIR}/TeXmacs-${PV}-src
+MY_P=${P/tex/TeX}-src
+S=${WORKDIR}/${MY_P}
 DESCRIPTION="GNU TeXmacs is a free GUI scientific editor, inspired by TeX and GNU Emacs."
-SRC_URI="ftp://ftp.texmacs.org/pub/TeXmacs/targz/TeXmacs-${PV}-src.tar.gz
+SRC_URI="ftp://ftp.texmacs.org/pub/TeXmacs/targz/${MY_P}.tar.gz
         ftp://ftp.texmacs.org/pub/TeXmacs/targz/TeXmacs-600dpi-fonts.tar.gz"
 HOMEPAGE="http://www.texmacs.org/"
 
@@ -14,27 +15,24 @@ KEYWORDS="~x86"
 
 DEPEND=">=app-text/tetex-1.0.7-r7
        >=dev-util/guile-1.3.4
-       >=x11-base/xfree-4.2.0-r5"
+       sys-apps/supersed
+       virtual/x11"
 
 RDEPEND="${DEPEND}
        app-text/ghostscript"
 
 src_compile() {
-       
-       cd ${S}
-       ./configure
-       cd src
-       mv common.makefile common.makefile.orig
-       cat common.makefile.orig | sed -e 's|CXXOPTIMIZE = -O3 -fexpensive-optimizations -fno-exceptions|CXXOPTIMIZE = -O0|g' > common.makefile
-
-       cd ${S}
-       make || die
+       
+       econf
+       ssed -i "s:\(^CXXOPTIMIZE = \).*:\1${CXXFLAGS}:" src/common.makefile
+
+       cd ${S}
+       make || die
 }
 
 
 src_install() {
 
-       cd ${S}
        make DESTDIR=${D} install || die
        
        cd ${WORKDIR}