Changed the ebuild to use the 'kde' eclass; Added a patch to the configure script...
authorSimone Gotti <motaboy@gentoo.org>
Wed, 27 Oct 2004 21:13:43 +0000 (21:13 +0000)
committerSimone Gotti <motaboy@gentoo.org>
Wed, 27 Oct 2004 21:13:43 +0000 (21:13 +0000)
app-sci/fung-calc/ChangeLog
app-sci/fung-calc/Manifest
app-sci/fung-calc/files/fung-calc-1.3.2b-configure.patch [new file with mode: 0644]
app-sci/fung-calc/fung-calc-1.3.2b.ebuild

index 07bb94cd9fbf7e544395898b2909b67ce1352b21..c9ce05eea6f5af46967e6daf4e2efd3a7f4d2886 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for app-sci/fung-calc
 # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/fung-calc/ChangeLog,v 1.9 2004/09/22 10:31:47 phosphan Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-sci/fung-calc/ChangeLog,v 1.10 2004/10/27 21:13:43 motaboy Exp $
+
+  27 Oct 2004; Simone Gotti <motaboy@gentoo.org>
+  +files/fung-calc-1.3.2b-configure.patch, fung-calc-1.3.2b.ebuild:
+  Changed the ebuild to use the 'kde' eclass; Added a patch to the configure
+  script to honor the 'arts' use flag, this fixes bug #69092.
 
   22 Sep 2004; Patrick Kursawe <phosphan@gentoo.org> fung-calc-1.3.2b.ebuild:
   Applying fPIC patch always - makes testing easier, helps prelinking and
index 74ef1c8e34bbd654d62a7ad975d76b9a258508a0..9d9046243be6527cfad08a2627133466ea3574f8 100644 (file)
@@ -1,6 +1,7 @@
-MD5 96267c9e9c98cb49cb47c93fb9c5a58d fung-calc-1.3.2b.ebuild 1019
-MD5 41652893c4111fdc519e34de7be8257f ChangeLog 1249
+MD5 a7fe53193422cf12acb7054a959dc415 fung-calc-1.3.2b.ebuild 987
+MD5 2fd8bd581f5d1d9eb8247910188711a3 ChangeLog 1506
 MD5 201497e376059503f8b7afd504d41023 metadata.xml 179
 MD5 7c91a4b480fa01a6b4bfa95814ad31bd files/fung-calc-gcc34-fix 679
 MD5 b0fb80ab9ac4825cc0a64bc59c7fcc3b files/digest-fung-calc-1.3.2b 69
 MD5 1f03bfb698d9118e85657502d1faf8c7 files/fung-calc-fPIC 1150
+MD5 93c4730063f2245c0e1608b2a2d8c731 files/fung-calc-1.3.2b-configure.patch 3567
diff --git a/app-sci/fung-calc/files/fung-calc-1.3.2b-configure.patch b/app-sci/fung-calc/files/fung-calc-1.3.2b-configure.patch
new file mode 100644 (file)
index 0000000..ebb514f
--- /dev/null
@@ -0,0 +1,141 @@
+--- configure.orig     2004-10-27 10:24:21.005162544 +0200
++++ configure  2004-10-27 10:24:58.224504344 +0200
+@@ -23722,138 +23722,6 @@
+    fi
+ 
+ 
+-   echo "$as_me:$LINENO: checking for mcopidl" >&5
+-echo $ECHO_N "checking for mcopidl... $ECHO_C" >&6
+-   if test -n "$MCOPIDL"; then
+-        kde_cv_path="$MCOPIDL";
+-   else
+-        kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
+-
+-        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
+-  echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+-
+-        kde_cv_path="NONE"
+-      dirs="$kde_default_bindirs"
+-      kde_save_IFS=$IFS
+-      IFS=':'
+-      for dir in $PATH; do
+-        dirs="$dirs $dir"
+-        done
+-      IFS=$kde_save_IFS
+-
+-        for dir in $dirs; do
+-        if test -x "$dir/mcopidl"; then
+-          if test -n ""
+-          then
+-              evalstr="$dir/mcopidl  2>&1 "
+-            if eval $evalstr; then
+-                kde_cv_path="$dir/mcopidl"
+-                break
+-            fi
+-            else
+-              kde_cv_path="$dir/mcopidl"
+-                break
+-          fi
+-          fi
+-        done
+-
+-        eval "kde_cv_path_$kde_cache=$kde_cv_path"
+-
+-
+-fi
+-
+-
+-      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
+-
+-   fi
+-
+-   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
+-      echo "$as_me:$LINENO: result: not found" >&5
+-echo "${ECHO_T}not found" >&6
+-
+-    { { echo "$as_me:$LINENO: error: The important program mcopidl was not found!
+-Please check whether you installed aRts correctly.
+-" >&5
+-echo "$as_me: error: The important program mcopidl was not found!
+-Please check whether you installed aRts correctly.
+-" >&2;}
+-   { (exit 1); exit 1; }; }
+-
+-   else
+-      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
+-echo "${ECHO_T}$kde_cv_path" >&6
+-      MCOPIDL=$kde_cv_path
+-
+-   fi
+-
+-
+-   echo "$as_me:$LINENO: checking for artsc-config" >&5
+-echo $ECHO_N "checking for artsc-config... $ECHO_C" >&6
+-   if test -n "$ARTSCCONFIG"; then
+-        kde_cv_path="$ARTSCCONFIG";
+-   else
+-        kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
+-
+-        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
+-  echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+-
+-        kde_cv_path="NONE"
+-      dirs="$kde_default_bindirs"
+-      kde_save_IFS=$IFS
+-      IFS=':'
+-      for dir in $PATH; do
+-        dirs="$dirs $dir"
+-        done
+-      IFS=$kde_save_IFS
+-
+-        for dir in $dirs; do
+-        if test -x "$dir/artsc-config"; then
+-          if test -n ""
+-          then
+-              evalstr="$dir/artsc-config  2>&1 "
+-            if eval $evalstr; then
+-                kde_cv_path="$dir/artsc-config"
+-                break
+-            fi
+-            else
+-              kde_cv_path="$dir/artsc-config"
+-                break
+-          fi
+-          fi
+-        done
+-
+-        eval "kde_cv_path_$kde_cache=$kde_cv_path"
+-
+-
+-fi
+-
+-
+-      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
+-
+-   fi
+-
+-   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
+-      echo "$as_me:$LINENO: result: not found" >&5
+-echo "${ECHO_T}not found" >&6
+-
+-    { { echo "$as_me:$LINENO: error: The important program artsc-config was not found!
+-Please check whether you installed aRts correctly.
+-" >&5
+-echo "$as_me: error: The important program artsc-config was not found!
+-Please check whether you installed aRts correctly.
+-" >&2;}
+-   { (exit 1); exit 1; }; }
+-
+-   else
+-      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
+-echo "${ECHO_T}$kde_cv_path" >&6
+-      ARTSCCONFIG=$kde_cv_path
+-
+-   fi
+-
+-
+    echo "$as_me:$LINENO: checking for kde-config" >&5
+ echo $ECHO_N "checking for kde-config... $ECHO_C" >&6
+    if test -n "$KDECONFIG"; then
index 7e248336bed8d2ba5d65f36dbab3696451a62f1b..aaf9644da9075be0d3b8d76e1e7ebf8a7cc3703d 100644 (file)
@@ -1,6 +1,8 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/fung-calc/fung-calc-1.3.2b.ebuild,v 1.8 2004/09/22 10:31:47 phosphan Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-sci/fung-calc/fung-calc-1.3.2b.ebuild,v 1.9 2004/10/27 21:13:43 motaboy Exp $
+
+inherit kde eutils flag-o-matic
 
 IUSE="opengl"
 
@@ -14,25 +16,26 @@ KEYWORDS="~x86 ~ppc ~amd64"
 DEPEND=">=sys-libs/zlib-1
        >=media-libs/libpng-1.2
        >=media-libs/jpeg-6
-       >=kde-base/kdelibs-3.1
-       >=x11-libs/qt-3.1
        virtual/libc
        opengl? ( virtual/opengl )
        >=kde-base/kdebase-3.1"
 
-inherit eutils flag-o-matic
+need-kde 3.1
+need-qt 3.1
+
+src_unpack() {
+       kde_src_unpack
+
+       epatch ${FILESDIR}/fung-calc-fPIC
+       epatch ${FILESDIR}/fung-calc-gcc34-fix
+       useq arts || epatch ${FILESDIR}/fung-calc-1.3.2b-configure.patch
+}
 
 src_compile() {
-       addwrite ${QTDIR}/etc/settings
-       local myconf
+       kde_src_compile myconf
+
        use opengl || myconf="${myconf} --disable-glgraph"
-       epatch ${FILESDIR}/fung-calc-fPIC
        # use kde || myconf="${myconf} --disable-kde-app"
-       econf ${myconf} || die "configure failed"
-       epatch ${FILESDIR}/fung-calc-gcc34-fix || die
-       emake || die "make failed"
-}
 
-src_install() {
-       einstall || die "install failed"
+       kde_src_compile configure make
 }