From 186eab35b194459931aee1753fc5ec8db744f271 Mon Sep 17 00:00:00 2001 From: Sebastien Fabbro Date: Fri, 17 Jan 2014 20:17:24 +0000 Subject: Removing the plplot_config patch since it creates more problems than it solves (bug #498234) (Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360) --- sci-libs/plplot/ChangeLog | 9 +- sci-libs/plplot/files/plplot-5.9.11-config.patch | 769 ----------------------- sci-libs/plplot/plplot-5.9.11-r1.ebuild | 243 +++++++ sci-libs/plplot/plplot-5.9.11.ebuild | 243 ------- 4 files changed, 251 insertions(+), 1013 deletions(-) delete mode 100644 sci-libs/plplot/files/plplot-5.9.11-config.patch create mode 100644 sci-libs/plplot/plplot-5.9.11-r1.ebuild delete mode 100644 sci-libs/plplot/plplot-5.9.11.ebuild (limited to 'sci-libs/plplot') diff --git a/sci-libs/plplot/ChangeLog b/sci-libs/plplot/ChangeLog index fbc3c0a1e9dd..9274db025c15 100644 --- a/sci-libs/plplot/ChangeLog +++ b/sci-libs/plplot/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-libs/plplot # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/ChangeLog,v 1.54 2014/01/16 00:49:50 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/ChangeLog,v 1.55 2014/01/17 20:17:24 bicatali Exp $ + +*plplot-5.9.11-r1 (17 Jan 2014) + + 17 Jan 2014; Sébastien Fabbro +plplot-5.9.11-r1.ebuild, + -files/plplot-5.9.11-config.patch, -plplot-5.9.11.ebuild: + Removing the plplot_config patch since it creates more problems than it solves + (bug #498234) *plplot-5.9.11 (16 Jan 2014) diff --git a/sci-libs/plplot/files/plplot-5.9.11-config.patch b/sci-libs/plplot/files/plplot-5.9.11-config.patch deleted file mode 100644 index 3bbbd6c4754b..000000000000 --- a/sci-libs/plplot/files/plplot-5.9.11-config.patch +++ /dev/null @@ -1,769 +0,0 @@ -Index: scripts/style_source.sh -=================================================================== ---- scripts/style_source.sh (revision 12913) -+++ scripts/style_source.sh (working copy) -@@ -193,7 +193,7 @@ - - export csource_LIST - # Top level directory. --csource_LIST="config.h.in" -+csource_LIST="plplot_config.h.in" - - # src directory - csource_LIST="$csource_LIST src/*.[ch]" -Index: doc/Doxyfile.in -=================================================================== ---- doc/Doxyfile.in (revision 12913) -+++ doc/Doxyfile.in (working copy) -@@ -660,7 +660,7 @@ - "@CMAKE_SOURCE_DIR@/drivers" \ - "@CMAKE_SOURCE_DIR@/bindings" \ - "@CMAKE_SOURCE_DIR@/include" \ -- "@CMAKE_BINARY_DIR@/config.h" \ -+ "@CMAKE_BINARY_DIR@/plplot_config.h" \ - "@CMAKE_BINARY_DIR@/lib" \ - "@CMAKE_BINARY_DIR@/bindings" \ - "@CMAKE_BINARY_DIR@/include" -Index: doc/CMakeLists.txt -=================================================================== ---- doc/CMakeLists.txt (revision 12913) -+++ doc/CMakeLists.txt (working copy) -@@ -60,7 +60,7 @@ - endforeach(directory ${doxygen_directories}) - # Must append one specific configured file to be consistent with - # the INPUT parameter in Doxyfile(.in). -- list(APPEND doxygen_globs ${CMAKE_BINARY_DIR}/config.h) -+ list(APPEND doxygen_globs ${CMAKE_BINARY_DIR}/plplot_config.h) - #message(STATUS "DEBUG: doxygen_globs = ${doxygen_globs}") - - # RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} works (because that is the -Index: CMakeLists.txt -=================================================================== ---- CMakeLists.txt (revision 12913) -+++ CMakeLists.txt (working copy) -@@ -121,10 +121,10 @@ - ) - - configure_file( -- ${CMAKE_CURRENT_SOURCE_DIR}/config.h.in -- ${CMAKE_CURRENT_BINARY_DIR}/config.h -+ ${CMAKE_CURRENT_SOURCE_DIR}/plplot_config.h.in -+ ${CMAKE_CURRENT_BINARY_DIR}/plplot_config.h - ) --# Allow access to the generated config.h for this build. -+# Allow access to the generated plplot_config.h for this build. - add_definitions("-DHAVE_CONFIG_H") - # Install top-level files - -Index: include/plConfig.h.in -=================================================================== ---- include/plConfig.h.in (revision 12913) -+++ include/plConfig.h.in (working copy) -@@ -5,7 +5,7 @@ - // IFS, University of Texas at Austin - // 18-Jul-1994 - // --// Copyright (C) 2004, 2006, 2007, 2008, 2009 Alan W. Irwin -+// Copyright (C) 2004-2013 Alan W. Irwin - // Copyright (C) 2004 Rafael Laboissiere - // Copyright (C) 2004 Joao Cardoso - // -@@ -24,33 +24,28 @@ - // You should have received a copy of the GNU Library General Public License - // along with PLplot; if not, write to the Free Software - // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA --// --// - - // Configured (by CMake) macros for PLplot that are required for the --// core build and the build of the installed --// examples (and presumably any user applications). Therefore, the --// configured plConfig.h should be installed. In contrast, --// config.h.cmake (note, plConfig.h #includes config.h for --// the core build because HAVE_CONFIG_H is #defined in that case) --// contains configured macros that are only required for the core --// build. Therefore, in contrast to plConfig.h, config.h should not --// be installed. -+// core build and the build of the installed examples (and presumably -+// any user applications). Therefore, the configured plConfig.h -+// should be installed. In contrast, plplot_config.h.in (note, -+// plConfig.h #includes plplot_config.h for the core build because -+// HAVE_CONFIG_H is #defined in that case) contains configured macros -+// that are only required for the core build. Therefore, in contrast -+// to plConfig.h, plplot_config.h should not be installed. - // - // Maintenance issue: in makes no sense to configure duplicate macros --// for both config.h and plConfig.h. Therefore, when adding a macro -+// for both plplot_config.h and plConfig.h. Therefore, when adding a macro - // decide which file to put it in depending on whether the result is - // needed for the installed examples build or not. Furthermore, move - // configured macros from one file to the other as needed depending on - // that criterion, but do not copy them. --// --// - - #ifndef __PLCONFIG_H__ - #define __PLCONFIG_H__ - - #ifdef HAVE_CONFIG_H --# include -+# include - #endif - - // Define if you have c++ accessible stdint.h -Index: config.h.in -=================================================================== ---- config.h.in (revision 12913) -+++ config.h.in (working copy) -@@ -1,311 +0,0 @@ --// Configured (by CMake) macros for PLplot that are required for the --// core build but _not_ required for the build of the installed --// examples (and presumably any user applications). Therefore, the --// configured config.h should not be installed. In contrast, --// include/plConfig.h.cmake (note, plConfig.h #includes config.h for --// the core build because HAVE_CONFIG_H is #defined in that case) --// contains configured macros that are required for the core build, --// installed examples build, and build of user applications. --// Therefore, in contrast to config.h, plConfig.h should be installed. --// --// Maintenance issue: in makes no sense to configure duplicate macros --// for both config.h and plConfig.h. Therefore, when adding a macro --// decide which file to put it in depending on whether the result is --// needed for the installed examples build or not. Furthermore, move --// configured macros from one file to the other as needed depending on --// that criterion, but do not copy them. --// --// -- --// Location of executables --#define BIN_DIR "@BIN_DIR@" -- --// Location of Build tree --#define BUILD_DIR "@BUILD_DIR@" -- --// Location of package data files --#define DATA_DIR "@DATA_DIR@" -- --// Location of dynamically loaded drivers --#define DRV_DIR "@DRV_DIR@" -- --// Name of the default cmap0 palette to use --#define PL_DEFAULT_CMAP0_FILE "@DEFAULT_CMAP0_FILE@" -- --// Name of the default cmap1 palette to use --#define PL_DEFAULT_CMAP1_FILE "@DEFAULT_CMAP1_FILE@" -- --// Define if support for deprecated plplot functions should be compiled --#cmakedefine PL_DEPRECATED -- --// Define if there is support for dynamically loaded drivers --#cmakedefine ENABLE_DYNDRIVERS -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_CMATH 1 -- --// Define to 1 if you have the header file, and it defines `DIR'. --// --#cmakedefine HAVE_DIRENT_H 1 -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_DLFCN_H 1 -- --// Define if [freetype] is available --#cmakedefine PL_HAVE_FREETYPE -- --// Define if [shapelib] is available --#cmakedefine HAVE_SHAPELIB -- --// Define if [agg] is available --#cmakedefine HAVE_AGG -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_GLIB_H 1 -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_GLIB_OBJECT_H 1 -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_GTK_GTK_H 1 -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_INTTYPES_H 1 -- --// Define if [incr], [Tcl] is available --#cmakedefine HAVE_ITCL -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_ITCLDECLS_H 1 -- --// Define if Tk is available --#cmakedefine ENABLE_tk -- --// Define if [incr], [Tk] is available --#cmakedefine HAVE_ITK -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_JNI_H 1 -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_LIBART_LGPL_LIBART_H 1 -- --// Define to 1 if you have the header file. --// --#cmakedefine HAVE_LIBGNOMECANVAS_LIBGNOMECANVAS_H 1 -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_LIBGNOMEPRINT_GNOME_PRINT_H 1 -- --// Define if libunicode is available --#cmakedefine HAVE_LIBUNICODE -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_MATH_H 1 -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_MEMORY_H 1 -- --// Define to 1 if the function mkstemp is available. --#cmakedefine PL_HAVE_MKSTEMP 1 -- --// Define to 1 if the function mkdtemp is available. --#cmakedefine PL_HAVE_MKDTEMP 1 -- --// Define to 1 if the function mkfifo is available. --#cmakedefine PL_HAVE_MKFIFO 1 -- --// Define to 1 if you have the header file, and it defines `DIR'. --#cmakedefine HAVE_NDIR_H 1 -- --// Define if libpango is available --#cmakedefine HAVE_PANGO -- --// Define if popen is available --#cmakedefine HAVE_POPEN -- --// Define if _NSGetArgc is available --#cmakedefine HAVE_NSGETARGC -- --// Define if pthreads is available --#cmakedefine PL_HAVE_PTHREAD -- --// Define if Qhull is available --#cmakedefine PL_HAVE_QHULL -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_STDLIB_H 1 -- --// Define to 1 if you have the header file, and it defines `DIR'. --// --#cmakedefine HAVE_SYS_DIR_H 1 -- --// Define to 1 if you have the header file, and it defines `DIR'. --// --#cmakedefine HAVE_SYS_NDIR_H 1 -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_SYS_STAT_H 1 -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_SYS_TYPES_H 1 -- --// Define to 1 if you have that is POSIX.1 compatible. --#cmakedefine HAVE_SYS_WAIT_H 1 -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_TERMIOS_H 1 -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_CRT_EXTERNS_H 1 -- --// Define to 1 if the function unlink is available --#cmakedefine PL_HAVE_UNLINK 1 -- --// Define to 1 if you have the `vfork' function. --#cmakedefine HAVE_VFORK 1 -- --// Define to 1 if you have the header file. --#cmakedefine HAVE_VFORK_H 1 -- --// Include sys/type.h if needed --#cmakedefine NEED_SYS_TYPE_H -- --// Name of package --#define PACKAGE "@PACKAGE@" -- --// Define if the win32 ltdl implementation should be used --#cmakedefine LTDL_WIN32 -- --// Portable definition for PTHREAD_MUTEX_RECURSIVE --#define PLPLOT_MUTEX_RECURSIVE @PLPLOT_MUTEX_RECURSIVE@ -- --// Directory containing fonts that are accessible from freetype --#define PL_FREETYPE_FONT_DIR "@PL_FREETYPE_FONT_DIR@" -- --// MONO font accessible from freetype --#define PL_FREETYPE_MONO "@PL_FREETYPE_MONO@" -- --// MONO_BOLD font accessible from freetype --#define PL_FREETYPE_MONO_BOLD "@PL_FREETYPE_MONO_BOLD@" -- --// MONO_BOLD_ITALIC font accessible from freetype --#define PL_FREETYPE_MONO_BOLD_ITALIC "@PL_FREETYPE_MONO_BOLD_ITALIC@" -- --// MONO_BOLD_OBLIQUE font accessible from freetype --#define PL_FREETYPE_MONO_BOLD_OBLIQUE "@PL_FREETYPE_MONO_BOLD_OBLIQUE@" -- --// MONO_ITALIC font accessible from freetype --#define PL_FREETYPE_MONO_ITALIC "@PL_FREETYPE_MONO_ITALIC@" -- --// MONO_OBLIQUE font accessible from freetype --#define PL_FREETYPE_MONO_OBLIQUE "@PL_FREETYPE_MONO_OBLIQUE@" -- --// SANS font accessible from freetype --#define PL_FREETYPE_SANS "@PL_FREETYPE_SANS@" -- --// SANS_BOLD font accessible from freetype --#define PL_FREETYPE_SANS_BOLD "@PL_FREETYPE_SANS_BOLD@" -- --// SANS_BOLD_ITALIC font accessible from freetype --#define PL_FREETYPE_SANS_BOLD_ITALIC "@PL_FREETYPE_SANS_BOLD_ITALIC@" -- --// SANS_BOLD_OBLIQUE font accessible from freetype --#define PL_FREETYPE_SANS_BOLD_OBLIQUE "@PL_FREETYPE_SANS_BOLD_OBLIQUE@" -- --// SANS_ITALIC font accessible from freetype --#define PL_FREETYPE_SANS_ITALIC "@PL_FREETYPE_SANS_ITALIC@" -- --// SANS_OBLIQUE font accessible from freetype --#define PL_FREETYPE_SANS_OBLIQUE "@PL_FREETYPE_SANS_OBLIQUE@" -- --// SCRIPT font accessible from freetype --#define PL_FREETYPE_SCRIPT "@PL_FREETYPE_SCRIPT@" -- --// SCRIPT_BOLD font accessible from freetype --#define PL_FREETYPE_SCRIPT_BOLD "@PL_FREETYPE_SCRIPT_BOLD@" -- --// SCRIPT_BOLD_ITALIC font accessible from freetype --#define PL_FREETYPE_SCRIPT_BOLD_ITALIC "@PL_FREETYPE_SCRIPT_BOLD_ITALIC@" -- --// SCRIPT_BOLD_OBLIQUE font accessible from freetype --#define PL_FREETYPE_SCRIPT_BOLD_OBLIQUE "@PL_FREETYPE_SCRIPT_BOLD_OBLIQUE@" -- --// SCRIPT_ITALIC font accessible from freetype --#define PL_FREETYPE_SCRIPT_ITALIC "@PL_FREETYPE_SCRIPT_ITALIC@" -- --// SCRIPT_OBLIQUE font accessible from freetype --#define PL_FREETYPE_SCRIPT_OBLIQUE "@PL_FREETYPE_SCRIPT_OBLIQUE@" -- --// SERIF font accessible from freetype --#define PL_FREETYPE_SERIF "@PL_FREETYPE_SERIF@" -- --// SERIF_BOLD font accessible from freetype --#define PL_FREETYPE_SERIF_BOLD "@PL_FREETYPE_SERIF_BOLD@" -- --// SERIF_BOLD_ITALIC font accessible from freetype --#define PL_FREETYPE_SERIF_BOLD_ITALIC "@PL_FREETYPE_SERIF_BOLD_ITALIC@" -- --// SERIF_BOLD_OBLIQUE font accessible from freetype --#define PL_FREETYPE_SERIF_BOLD_OBLIQUE "@PL_FREETYPE_SERIF_BOLD_OBLIQUE@" -- --// SERIF_ITALIC font accessible from freetype --#define PL_FREETYPE_SERIF_ITALIC "@PL_FREETYPE_SERIF_ITALIC@" -- --// SERIF_OBLIQUE font accessible from freetype --#define PL_FREETYPE_SERIF_OBLIQUE "@PL_FREETYPE_SERIF_OBLIQUE@" -- --// Symbol font accessible from freetype --#define PL_FREETYPE_SYMBOL "@PL_FREETYPE_SYMBOL@" -- --// SYMBOL_BOLD font accessible from freetype --#define PL_FREETYPE_SYMBOL_BOLD "@PL_FREETYPE_SYMBOL_BOLD@" -- --// SYMBOL_BOLD_ITALIC font accessible from freetype --#define PL_FREETYPE_SYMBOL_BOLD_ITALIC "@PL_FREETYPE_SYMBOL_BOLD_ITALIC@" -- --// SYMBOL_BOLD_OBLIQUE font accessible from freetype --#define PL_FREETYPE_SYMBOL_BOLD_OBLIQUE "@PL_FREETYPE_SYMBOL_BOLD_OBLIQUE@" -- --// SYMBOL_ITALIC font accessible from freetype --#define PL_FREETYPE_SYMBOL_ITALIC "@PL_FREETYPE_SYMBOL_ITALIC@" -- --// SYMBOL_OBLIQUE font accessible from freetype --#define PL_FREETYPE_SYMBOL_OBLIQUE "@PL_FREETYPE_SYMBOL_OBLIQUE@" -- --// Define as the return type of signal handlers (`int' or `void'). --#define RETSIGTYPE @RETSIGTYPE@ -- --// Location of Source tree --#define SOURCE_DIR "@SOURCE_DIR@" -- --// Define to 1 if you have the ANSI C header files. --#cmakedefine STDC_HEADERS 1 -- --// Overall PLplot version number --#define PLPLOT_VERSION "@PLPLOT_VERSION@" -- --// Location of Tcl stuff --#define TCL_DIR "@TCL_DIR@" --// Consistent package versions for Itcl and friends found by PLplot --// If PLplot could not find consistent values these are set to 0.0.0 --#define PLPLOT_ITCL_VERSION "@PLPLOT_ITCL_VERSION@" --#define PLPLOT_ITK_VERSION "@PLPLOT_ITK_VERSION@" --#define PLPLOT_IWIDGETS_VERSION "@PLPLOT_IWIDGETS_VERSION@" -- --// Define if csa is desired --#cmakedefine WITH_CSA -- --// Define if want to use general fill_intersection_polygon approach --// rather than the traditional code to fill the intersection of a polygon with --// the clipping limits. --#cmakedefine USE_FILL_INTERSECTION_POLYGON -- --// Define to `char *' if does not define. --#cmakedefine caddr_t -- --// Define to `int' if does not define. --#cmakedefine pid_t -- --// Define as `fork' if `vfork' does not work. --#cmakedefine vfork -Index: drivers/plplotcanvas-hacktext.c -=================================================================== ---- drivers/plplotcanvas-hacktext.c (revision 12913) -+++ drivers/plplotcanvas-hacktext.c (working copy) -@@ -31,7 +31,7 @@ - // FIXME: TODO: Clipping - // - --#include -+#include - - #include - #include -Index: plplot_config.h.in -=================================================================== ---- plplot_config.h.in (revision 0) -+++ plplot_config.h.in (revision 12914) -@@ -0,0 +1,311 @@ -+// Configured (by CMake) macros for PLplot that are required for the -+// core build but _not_ required for the build of the installed -+// examples (and presumably any user applications). Therefore, the -+// configured plplot_config.h should not be installed. In contrast, -+// include/plConfig.h.in (note, the configured plConfig.h result -+// #includes plplot_config.h for the core build because HAVE_CONFIG_H -+// is #defined in that case) contains configured macros that are -+// required for the core build, installed examples build, and build of -+// user applications. Therefore, in contrast to plplot_config.h, -+// plConfig.h should be installed. -+// -+// Maintenance issue: in makes no sense to configure duplicate macros -+// for both plplot_config.h and plConfig.h. Therefore, when adding a macro -+// decide which file to put it in depending on whether the result is -+// needed for the installed examples build or not. Furthermore, move -+// configured macros from one file to the other as needed depending on -+// that criterion, but do not copy them. -+// -+ -+// Location of executables -+#define BIN_DIR "@BIN_DIR@" -+ -+// Location of Build tree -+#define BUILD_DIR "@BUILD_DIR@" -+ -+// Location of package data files -+#define DATA_DIR "@DATA_DIR@" -+ -+// Location of dynamically loaded drivers -+#define DRV_DIR "@DRV_DIR@" -+ -+// Name of the default cmap0 palette to use -+#define PL_DEFAULT_CMAP0_FILE "@DEFAULT_CMAP0_FILE@" -+ -+// Name of the default cmap1 palette to use -+#define PL_DEFAULT_CMAP1_FILE "@DEFAULT_CMAP1_FILE@" -+ -+// Define if support for deprecated plplot functions should be compiled -+#cmakedefine PL_DEPRECATED -+ -+// Define if there is support for dynamically loaded drivers -+#cmakedefine ENABLE_DYNDRIVERS -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_CMATH 1 -+ -+// Define to 1 if you have the header file, and it defines `DIR'. -+// -+#cmakedefine HAVE_DIRENT_H 1 -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_DLFCN_H 1 -+ -+// Define if [freetype] is available -+#cmakedefine PL_HAVE_FREETYPE -+ -+// Define if [shapelib] is available -+#cmakedefine HAVE_SHAPELIB -+ -+// Define if [agg] is available -+#cmakedefine HAVE_AGG -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_GLIB_H 1 -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_GLIB_OBJECT_H 1 -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_GTK_GTK_H 1 -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_INTTYPES_H 1 -+ -+// Define if [incr], [Tcl] is available -+#cmakedefine HAVE_ITCL -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_ITCLDECLS_H 1 -+ -+// Define if Tk is available -+#cmakedefine ENABLE_tk -+ -+// Define if [incr], [Tk] is available -+#cmakedefine HAVE_ITK -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_JNI_H 1 -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_LIBART_LGPL_LIBART_H 1 -+ -+// Define to 1 if you have the header file. -+// -+#cmakedefine HAVE_LIBGNOMECANVAS_LIBGNOMECANVAS_H 1 -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_LIBGNOMEPRINT_GNOME_PRINT_H 1 -+ -+// Define if libunicode is available -+#cmakedefine HAVE_LIBUNICODE -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_MATH_H 1 -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_MEMORY_H 1 -+ -+// Define to 1 if the function mkstemp is available. -+#cmakedefine PL_HAVE_MKSTEMP 1 -+ -+// Define to 1 if the function mkdtemp is available. -+#cmakedefine PL_HAVE_MKDTEMP 1 -+ -+// Define to 1 if the function mkfifo is available. -+#cmakedefine PL_HAVE_MKFIFO 1 -+ -+// Define to 1 if you have the header file, and it defines `DIR'. -+#cmakedefine HAVE_NDIR_H 1 -+ -+// Define if libpango is available -+#cmakedefine HAVE_PANGO -+ -+// Define if popen is available -+#cmakedefine HAVE_POPEN -+ -+// Define if _NSGetArgc is available -+#cmakedefine HAVE_NSGETARGC -+ -+// Define if pthreads is available -+#cmakedefine PL_HAVE_PTHREAD -+ -+// Define if Qhull is available -+#cmakedefine PL_HAVE_QHULL -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_STDLIB_H 1 -+ -+// Define to 1 if you have the header file, and it defines `DIR'. -+// -+#cmakedefine HAVE_SYS_DIR_H 1 -+ -+// Define to 1 if you have the header file, and it defines `DIR'. -+// -+#cmakedefine HAVE_SYS_NDIR_H 1 -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_SYS_STAT_H 1 -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_SYS_TYPES_H 1 -+ -+// Define to 1 if you have that is POSIX.1 compatible. -+#cmakedefine HAVE_SYS_WAIT_H 1 -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_TERMIOS_H 1 -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_CRT_EXTERNS_H 1 -+ -+// Define to 1 if the function unlink is available -+#cmakedefine PL_HAVE_UNLINK 1 -+ -+// Define to 1 if you have the `vfork' function. -+#cmakedefine HAVE_VFORK 1 -+ -+// Define to 1 if you have the header file. -+#cmakedefine HAVE_VFORK_H 1 -+ -+// Include sys/type.h if needed -+#cmakedefine NEED_SYS_TYPE_H -+ -+// Name of package -+#define PACKAGE "@PACKAGE@" -+ -+// Define if the win32 ltdl implementation should be used -+#cmakedefine LTDL_WIN32 -+ -+// Portable definition for PTHREAD_MUTEX_RECURSIVE -+#define PLPLOT_MUTEX_RECURSIVE @PLPLOT_MUTEX_RECURSIVE@ -+ -+// Directory containing fonts that are accessible from freetype -+#define PL_FREETYPE_FONT_DIR "@PL_FREETYPE_FONT_DIR@" -+ -+// MONO font accessible from freetype -+#define PL_FREETYPE_MONO "@PL_FREETYPE_MONO@" -+ -+// MONO_BOLD font accessible from freetype -+#define PL_FREETYPE_MONO_BOLD "@PL_FREETYPE_MONO_BOLD@" -+ -+// MONO_BOLD_ITALIC font accessible from freetype -+#define PL_FREETYPE_MONO_BOLD_ITALIC "@PL_FREETYPE_MONO_BOLD_ITALIC@" -+ -+// MONO_BOLD_OBLIQUE font accessible from freetype -+#define PL_FREETYPE_MONO_BOLD_OBLIQUE "@PL_FREETYPE_MONO_BOLD_OBLIQUE@" -+ -+// MONO_ITALIC font accessible from freetype -+#define PL_FREETYPE_MONO_ITALIC "@PL_FREETYPE_MONO_ITALIC@" -+ -+// MONO_OBLIQUE font accessible from freetype -+#define PL_FREETYPE_MONO_OBLIQUE "@PL_FREETYPE_MONO_OBLIQUE@" -+ -+// SANS font accessible from freetype -+#define PL_FREETYPE_SANS "@PL_FREETYPE_SANS@" -+ -+// SANS_BOLD font accessible from freetype -+#define PL_FREETYPE_SANS_BOLD "@PL_FREETYPE_SANS_BOLD@" -+ -+// SANS_BOLD_ITALIC font accessible from freetype -+#define PL_FREETYPE_SANS_BOLD_ITALIC "@PL_FREETYPE_SANS_BOLD_ITALIC@" -+ -+// SANS_BOLD_OBLIQUE font accessible from freetype -+#define PL_FREETYPE_SANS_BOLD_OBLIQUE "@PL_FREETYPE_SANS_BOLD_OBLIQUE@" -+ -+// SANS_ITALIC font accessible from freetype -+#define PL_FREETYPE_SANS_ITALIC "@PL_FREETYPE_SANS_ITALIC@" -+ -+// SANS_OBLIQUE font accessible from freetype -+#define PL_FREETYPE_SANS_OBLIQUE "@PL_FREETYPE_SANS_OBLIQUE@" -+ -+// SCRIPT font accessible from freetype -+#define PL_FREETYPE_SCRIPT "@PL_FREETYPE_SCRIPT@" -+ -+// SCRIPT_BOLD font accessible from freetype -+#define PL_FREETYPE_SCRIPT_BOLD "@PL_FREETYPE_SCRIPT_BOLD@" -+ -+// SCRIPT_BOLD_ITALIC font accessible from freetype -+#define PL_FREETYPE_SCRIPT_BOLD_ITALIC "@PL_FREETYPE_SCRIPT_BOLD_ITALIC@" -+ -+// SCRIPT_BOLD_OBLIQUE font accessible from freetype -+#define PL_FREETYPE_SCRIPT_BOLD_OBLIQUE "@PL_FREETYPE_SCRIPT_BOLD_OBLIQUE@" -+ -+// SCRIPT_ITALIC font accessible from freetype -+#define PL_FREETYPE_SCRIPT_ITALIC "@PL_FREETYPE_SCRIPT_ITALIC@" -+ -+// SCRIPT_OBLIQUE font accessible from freetype -+#define PL_FREETYPE_SCRIPT_OBLIQUE "@PL_FREETYPE_SCRIPT_OBLIQUE@" -+ -+// SERIF font accessible from freetype -+#define PL_FREETYPE_SERIF "@PL_FREETYPE_SERIF@" -+ -+// SERIF_BOLD font accessible from freetype -+#define PL_FREETYPE_SERIF_BOLD "@PL_FREETYPE_SERIF_BOLD@" -+ -+// SERIF_BOLD_ITALIC font accessible from freetype -+#define PL_FREETYPE_SERIF_BOLD_ITALIC "@PL_FREETYPE_SERIF_BOLD_ITALIC@" -+ -+// SERIF_BOLD_OBLIQUE font accessible from freetype -+#define PL_FREETYPE_SERIF_BOLD_OBLIQUE "@PL_FREETYPE_SERIF_BOLD_OBLIQUE@" -+ -+// SERIF_ITALIC font accessible from freetype -+#define PL_FREETYPE_SERIF_ITALIC "@PL_FREETYPE_SERIF_ITALIC@" -+ -+// SERIF_OBLIQUE font accessible from freetype -+#define PL_FREETYPE_SERIF_OBLIQUE "@PL_FREETYPE_SERIF_OBLIQUE@" -+ -+// Symbol font accessible from freetype -+#define PL_FREETYPE_SYMBOL "@PL_FREETYPE_SYMBOL@" -+ -+// SYMBOL_BOLD font accessible from freetype -+#define PL_FREETYPE_SYMBOL_BOLD "@PL_FREETYPE_SYMBOL_BOLD@" -+ -+// SYMBOL_BOLD_ITALIC font accessible from freetype -+#define PL_FREETYPE_SYMBOL_BOLD_ITALIC "@PL_FREETYPE_SYMBOL_BOLD_ITALIC@" -+ -+// SYMBOL_BOLD_OBLIQUE font accessible from freetype -+#define PL_FREETYPE_SYMBOL_BOLD_OBLIQUE "@PL_FREETYPE_SYMBOL_BOLD_OBLIQUE@" -+ -+// SYMBOL_ITALIC font accessible from freetype -+#define PL_FREETYPE_SYMBOL_ITALIC "@PL_FREETYPE_SYMBOL_ITALIC@" -+ -+// SYMBOL_OBLIQUE font accessible from freetype -+#define PL_FREETYPE_SYMBOL_OBLIQUE "@PL_FREETYPE_SYMBOL_OBLIQUE@" -+ -+// Define as the return type of signal handlers (`int' or `void'). -+#define RETSIGTYPE @RETSIGTYPE@ -+ -+// Location of Source tree -+#define SOURCE_DIR "@SOURCE_DIR@" -+ -+// Define to 1 if you have the ANSI C header files. -+#cmakedefine STDC_HEADERS 1 -+ -+// Overall PLplot version number -+#define PLPLOT_VERSION "@PLPLOT_VERSION@" -+ -+// Location of Tcl stuff -+#define TCL_DIR "@TCL_DIR@" -+// Consistent package versions for Itcl and friends found by PLplot -+// If PLplot could not find consistent values these are set to 0.0.0 -+#define PLPLOT_ITCL_VERSION "@PLPLOT_ITCL_VERSION@" -+#define PLPLOT_ITK_VERSION "@PLPLOT_ITK_VERSION@" -+#define PLPLOT_IWIDGETS_VERSION "@PLPLOT_IWIDGETS_VERSION@" -+ -+// Define if csa is desired -+#cmakedefine WITH_CSA -+ -+// Define if want to use general fill_intersection_polygon approach -+// rather than the traditional code to fill the intersection of a polygon with -+// the clipping limits. -+#cmakedefine USE_FILL_INTERSECTION_POLYGON -+ -+// Define to `char *' if does not define. -+#cmakedefine caddr_t -+ -+// Define to `int' if does not define. -+#cmakedefine pid_t -+ -+// Define as `fork' if `vfork' does not work. -+#cmakedefine vfork - -Property changes on: plplot_config.h.in -___________________________________________________________________ -Added: svn:keywords -## -0,0 +1 ## -+Author Date Id Revision -\ No newline at end of property -Added: svn:eol-style -## -0,0 +1 ## -+native -\ No newline at end of property diff --git a/sci-libs/plplot/plplot-5.9.11-r1.ebuild b/sci-libs/plplot/plplot-5.9.11-r1.ebuild new file mode 100644 index 000000000000..4db95d2fde83 --- /dev/null +++ b/sci-libs/plplot/plplot-5.9.11-r1.ebuild @@ -0,0 +1,243 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/plplot-5.9.11-r1.ebuild,v 1.1 2014/01/17 20:17:24 bicatali Exp $ + +EAPI=5 + +WX_GTK_VER="2.8" +FORTRAN_NEEDED=fortran +PYTHON_COMPAT=( python{2_6,2_7} ) + +inherit eutils fortran-2 cmake-utils python-single-r1 toolchain-funcs \ + virtualx wxwidgets java-pkg-opt-2 multilib + +DESCRIPTION="Multi-language scientific plotting library" +HOMEPAGE="http://plplot.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0/12" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="ada cairo cxx doc +dynamic examples fortran gd java jpeg latex lua + ocaml octave pdf pdl png python qhull qt4 shapefile svg tcl test + threads tk truetype wxwidgets X" + +RDEPEND=" + ada? ( virtual/gnat ) + cairo? ( x11-libs/cairo[svg?,X?] ) + java? ( >=virtual/jre-1.5 ) + gd? ( media-libs/gd[jpeg?,png?] ) + latex? ( + app-text/ghostscript-gpl + virtual/latex-base + ) + lua? ( dev-lang/lua ) + ocaml? ( + dev-lang/ocaml + dev-ml/camlidl + cairo? ( dev-ml/cairo-ocaml[gtk] ) + ) + octave? ( sci-mathematics/octave ) + pdf? ( media-libs/libharu ) + pdl? ( + dev-perl/PDL + dev-perl/XML-DOM + ) + python? ( + dev-python/numpy[${PYTHON_USEDEP}] + qt4? ( dev-python/PyQt4[${PYTHON_USEDEP}] ) + ) + qhull? ( media-libs/qhull ) + qt4? ( + dev-qt/qtgui:4 + dev-qt/qtsvg:4 + ) + shapefile? ( sci-libs/shapelib ) + tcl? ( + dev-lang/tcl + dev-tcltk/itcl + tk? ( + dev-lang/tk + dev-tcltk/itk + ) + ) + truetype? ( + media-fonts/freefont + media-libs/lasi + gd? ( media-libs/gd[truetype] ) + ) + wxwidgets? ( + x11-libs/wxGTK:2.8[X] + x11-libs/agg[truetype?] + ) + X? ( + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp + )" + +DEPEND="${RDEPEND} + virtual/pkgconfig + java? ( + >=virtual/jdk-1.5 + dev-lang/swig + ) + ocaml? ( dev-ml/findlib ) + python? ( dev-lang/swig ) + test? ( + media-fonts/font-misc-misc + media-fonts/font-cursor-misc + )" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) qt4? ( dynamic ) test? ( latex )" + +PATCHES=( + "${FILESDIR}"/${PN}-5.9.6-python.patch + "${FILESDIR}"/${PN}-5.9.11-ocaml.patch + "${FILESDIR}"/${PN}-5.9.11-octave.patch + "${FILESDIR}"/${PN}-5.9.11-multiarch.patch +) +# "${FILESDIR}"/${PN}-5.9.11-config.patch + +pkg_setup() { + use python && python-single-r1_pkg_setup + java-pkg-opt-2_pkg_setup +} + +src_prepare() { + cmake-utils_src_prepare + # avoid installing license + sed -i -e '/COPYING.LIB/d' CMakeLists.txt || die + # prexify hard-coded /usr/include in cmake modules + sed -i \ + -e "s:/usr/include:${EPREFIX}/usr/include:g" \ + -e "s:/usr/lib:${EPREFIX}/usr/$(get_libdir):g" \ + -e "s:/usr/share:${EPREFIX}/usr/share:g" \ + cmake/modules/*.cmake || die + # change default install directories for doc and examples + sed -i \ + -e 's:${DATA_DIR}/examples:${DOC_DIR}/examples:g' \ + $(find "${S}" -name CMakeLists.txt) || die + sed -i \ + -e 's:${VERSION}::g' \ + -e "s:doc/\${PACKAGE}:doc/${PF}:" \ + cmake/modules/instdirs.cmake || die + java-utils-2_src_prepare +} + +src_configure() { + # don't build doc, it brings a whole lot of horrible dependencies + local mycmakeargs=( + -DDEFAULT_ALL_DEVICES=ON + -DTEST_DYNDRIVERS=OFF + -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)" + -DENABLE_d=OFF + -DBUILD_DVI=OFF + -DDOX_DOC=OFF + -DBUILD_DOC=OFF + $(cmake-utils_use doc PREBUILT_DOC) + $(cmake-utils_use_build test) + $(cmake-utils_use_has python NUMPY) + $(cmake-utils_use_has shapefile SHAPELIB) + $(cmake-utils_use_with truetype FREETYPE) + $(cmake-utils_use_enable ada) + $(cmake-utils_use_enable cxx) + $(cmake-utils_use_enable dynamic DYNDRIVERS) + $(cmake-utils_use_enable fortran f77) + $(cmake-utils_use_enable java) + $(cmake-utils_use_enable lua) + $(cmake-utils_use_enable ocaml) + $(cmake-utils_use_enable octave) + $(cmake-utils_use_enable pdl) + $(cmake-utils_use_enable python) + $(cmake-utils_use_enable qt4 qt) + $(cmake-utils_use_enable tcl) + $(cmake-utils_use_enable tcl itcl) + $(cmake-utils_use_enable tk) + $(cmake-utils_use_enable tk itk) + $(cmake-utils_use_enable wxwidgets) + $(cmake-utils_use threads PL_HAVE_PTHREAD) + $(cmake-utils_use qhull PL_HAVE_QHULL) + $(cmake-utils_use qt4 PLD_aqt) + $(cmake-utils_use qt4 PLD_bmpqt) + $(cmake-utils_use qt4 PLD_epsqt) + $(cmake-utils_use qt4 PLD_extqt) + $(cmake-utils_use qt4 PLD_jpgqt) + $(cmake-utils_use qt4 PLD_memqt) + $(cmake-utils_use qt4 PLD_pdfqt) + $(cmake-utils_use qt4 PLD_pngqt) + $(cmake-utils_use qt4 PLD_ppmqt) + $(cmake-utils_use qt4 PLD_svgqt) + $(cmake-utils_use qt4 PLD_qtwidget) + $(cmake-utils_use qt4 PLD_tiffqt) + $(cmake-utils_use cairo PLD_extcairo) + $(cmake-utils_use cairo PLD_memcairo) + $(cmake-utils_use cairo PLD_pdfcairo) + $(cmake-utils_use cairo PLD_pngcairo) + $(cmake-utils_use cairo PLD_pscairo) + $(cmake-utils_use cairo PLD_svgcairo) + $(cmake-utils_use cairo PLD_wincairo) + $(cmake-utils_use cairo PLD_xcairo) + $(cmake-utils_use tk PLD_ntk) + $(cmake-utils_use tk PLD_tk) + $(cmake-utils_use tk PLD_tkwin) + $(cmake-utils_use gd PLD_gif) + $(cmake-utils_use gd PLD_jpeg) + $(cmake-utils_use gd PLD_png) + $(cmake-utils_use pdf PLD_pdf) + $(cmake-utils_use latex PLD_ps) + $(cmake-utils_use latex PLD_pstex) + $(cmake-utils_use truetype PLD_psttf) + $(cmake-utils_use svg PLD_svg) + $(cmake-utils_use wxwidgets PLD_wxpng) + $(cmake-utils_use wxwidgets PLD_wxwidgets) + $(cmake-utils_use X PLD_xwin) + ) + + [[ $(tc-getFC) != *g77 ]] && \ + mycmakeargs+=( + $(cmake-utils_use_enable fortran f95) + ) + + use truetype && mycmakeargs+=( + -DPL_FREETYPE_FONT_PATH:PATH="${EPREFIX}/usr/share/fonts/freefont" + ) + use shapefile && mycmakeargs+=( + -DSHAPELIB_INCLUDE_DIR="${EPREFIX}/usr/include/libshp" + ) + use ocaml && mycmakeargs+=( + -DOCAML_INSTALL_DIR="$(ocamlc -where)" + ) + use python && mycmakeargs+=( + $(cmake-utils_use_enable qt4 pyqt4) + ) + + cmake-utils_src_configure + + # clean up bloated pkg-config files (help linking properly on prefix) + sed -i \ + -e "/Cflags/s:-I\(${EPREFIX}\|\)/usr/include[[:space:]]::g" \ + -e "/Libs/s:-L\(${EPREFIX}\|\)/usr/lib\(64\|\)[[:space:]]::g" \ + -e "s:${LDFLAGS}::g" \ + "${BUILD_DIR}"/pkgcfg/*pc || die +} + +src_test() { + pushd "${BUILD_DIR}" > /dev/null + Xemake test || die "tests failed" + popd > /dev/null +} + +src_install() { + cmake-utils_src_install + if use examples; then + docompress -x /usr/share/doc/${PF}/examples + else + rm -r "${ED}"/usr/share/doc/${PF}/examples || die + fi + if use java; then + rm -r "${ED}"/usr/share/java "${ED}"/usr/$(get_libdir)/jni || die + java-pkg_dojar "${BUILD_DIR}"/examples/java/${PN}.jar + java-pkg_doso "${BUILD_DIR}"/bindings/java/plplotjavac_wrap.so + fi +} diff --git a/sci-libs/plplot/plplot-5.9.11.ebuild b/sci-libs/plplot/plplot-5.9.11.ebuild deleted file mode 100644 index 0c70d4c1caf3..000000000000 --- a/sci-libs/plplot/plplot-5.9.11.ebuild +++ /dev/null @@ -1,243 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/plplot-5.9.11.ebuild,v 1.1 2014/01/16 00:49:50 bicatali Exp $ - -EAPI=5 - -WX_GTK_VER="2.8" -FORTRAN_NEEDED=fortran -PYTHON_COMPAT=( python{2_6,2_7} ) - -inherit eutils fortran-2 cmake-utils python-single-r1 toolchain-funcs \ - virtualx wxwidgets java-pkg-opt-2 multilib - -DESCRIPTION="Multi-language scientific plotting library" -HOMEPAGE="http://plplot.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="LGPL-2" -SLOT="0/12" -KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" -IUSE="ada cairo cxx doc +dynamic examples fortran gd java jpeg latex lua - ocaml octave pdf pdl png python qhull qt4 shapefile svg tcl test - threads tk truetype wxwidgets X" - -RDEPEND=" - ada? ( virtual/gnat ) - cairo? ( x11-libs/cairo[svg?,X?] ) - java? ( >=virtual/jre-1.5 ) - gd? ( media-libs/gd[jpeg?,png?] ) - latex? ( - app-text/ghostscript-gpl - virtual/latex-base - ) - lua? ( dev-lang/lua ) - ocaml? ( - dev-lang/ocaml - dev-ml/camlidl - cairo? ( dev-ml/cairo-ocaml[gtk] ) - ) - octave? ( sci-mathematics/octave ) - pdf? ( media-libs/libharu ) - pdl? ( - dev-perl/PDL - dev-perl/XML-DOM - ) - python? ( - dev-python/numpy[${PYTHON_USEDEP}] - qt4? ( dev-python/PyQt4[${PYTHON_USEDEP}] ) - ) - qhull? ( media-libs/qhull ) - qt4? ( - dev-qt/qtgui:4 - dev-qt/qtsvg:4 - ) - shapefile? ( sci-libs/shapelib ) - tcl? ( - dev-lang/tcl - dev-tcltk/itcl - tk? ( - dev-lang/tk - dev-tcltk/itk - ) - ) - truetype? ( - media-fonts/freefont - media-libs/lasi - gd? ( media-libs/gd[truetype] ) - ) - wxwidgets? ( - x11-libs/wxGTK:2.8[X] - x11-libs/agg[truetype?] - ) - X? ( - x11-libs/libX11 - x11-libs/libXau - x11-libs/libXdmcp - )" - -DEPEND="${RDEPEND} - virtual/pkgconfig - java? ( - >=virtual/jdk-1.5 - dev-lang/swig - ) - ocaml? ( dev-ml/findlib ) - python? ( dev-lang/swig ) - test? ( - media-fonts/font-misc-misc - media-fonts/font-cursor-misc - )" - -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) qt4? ( dynamic ) test? ( latex )" - -PATCHES=( - "${FILESDIR}"/${PN}-5.9.6-python.patch - "${FILESDIR}"/${PN}-5.9.11-ocaml.patch - "${FILESDIR}"/${PN}-5.9.11-octave.patch - "${FILESDIR}"/${PN}-5.9.11-multiarch.patch - "${FILESDIR}"/${PN}-5.9.11-config.patch -) - -pkg_setup() { - use python && python-single-r1_pkg_setup - java-pkg-opt-2_pkg_setup -} - -src_prepare() { - cmake-utils_src_prepare - # avoid installing license - sed -i -e '/COPYING.LIB/d' CMakeLists.txt || die - # prexify hard-coded /usr/include in cmake modules - sed -i \ - -e "s:/usr/include:${EPREFIX}/usr/include:g" \ - -e "s:/usr/lib:${EPREFIX}/usr/$(get_libdir):g" \ - -e "s:/usr/share:${EPREFIX}/usr/share:g" \ - cmake/modules/*.cmake || die - # change default install directories for doc and examples - sed -i \ - -e 's:${DATA_DIR}/examples:${DOC_DIR}/examples:g' \ - $(find "${S}" -name CMakeLists.txt) || die - sed -i \ - -e 's:${VERSION}::g' \ - -e "s:doc/\${PACKAGE}:doc/${PF}:" \ - cmake/modules/instdirs.cmake || die - java-utils-2_src_prepare -} - -src_configure() { - # don't build doc, it brings a whole lot of horrible dependencies - local mycmakeargs=( - -DDEFAULT_ALL_DEVICES=ON - -DTEST_DYNDRIVERS=OFF - -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)" - -DENABLE_d=OFF - -DBUILD_DVI=OFF - -DDOX_DOC=OFF - -DBUILD_DOC=OFF - $(cmake-utils_use doc PREBUILT_DOC) - $(cmake-utils_use_build test) - $(cmake-utils_use_has python NUMPY) - $(cmake-utils_use_has shapefile SHAPELIB) - $(cmake-utils_use_with truetype FREETYPE) - $(cmake-utils_use_enable ada) - $(cmake-utils_use_enable cxx) - $(cmake-utils_use_enable dynamic DYNDRIVERS) - $(cmake-utils_use_enable fortran f77) - $(cmake-utils_use_enable java) - $(cmake-utils_use_enable lua) - $(cmake-utils_use_enable ocaml) - $(cmake-utils_use_enable octave) - $(cmake-utils_use_enable pdl) - $(cmake-utils_use_enable python) - $(cmake-utils_use_enable qt4 qt) - $(cmake-utils_use_enable tcl) - $(cmake-utils_use_enable tcl itcl) - $(cmake-utils_use_enable tk) - $(cmake-utils_use_enable tk itk) - $(cmake-utils_use_enable wxwidgets) - $(cmake-utils_use threads PL_HAVE_PTHREAD) - $(cmake-utils_use qhull PL_HAVE_QHULL) - $(cmake-utils_use qt4 PLD_aqt) - $(cmake-utils_use qt4 PLD_bmpqt) - $(cmake-utils_use qt4 PLD_epsqt) - $(cmake-utils_use qt4 PLD_extqt) - $(cmake-utils_use qt4 PLD_jpgqt) - $(cmake-utils_use qt4 PLD_memqt) - $(cmake-utils_use qt4 PLD_pdfqt) - $(cmake-utils_use qt4 PLD_pngqt) - $(cmake-utils_use qt4 PLD_ppmqt) - $(cmake-utils_use qt4 PLD_svgqt) - $(cmake-utils_use qt4 PLD_qtwidget) - $(cmake-utils_use qt4 PLD_tiffqt) - $(cmake-utils_use cairo PLD_extcairo) - $(cmake-utils_use cairo PLD_memcairo) - $(cmake-utils_use cairo PLD_pdfcairo) - $(cmake-utils_use cairo PLD_pngcairo) - $(cmake-utils_use cairo PLD_pscairo) - $(cmake-utils_use cairo PLD_svgcairo) - $(cmake-utils_use cairo PLD_wincairo) - $(cmake-utils_use cairo PLD_xcairo) - $(cmake-utils_use tk PLD_ntk) - $(cmake-utils_use tk PLD_tk) - $(cmake-utils_use tk PLD_tkwin) - $(cmake-utils_use gd PLD_gif) - $(cmake-utils_use gd PLD_jpeg) - $(cmake-utils_use gd PLD_png) - $(cmake-utils_use pdf PLD_pdf) - $(cmake-utils_use latex PLD_ps) - $(cmake-utils_use latex PLD_pstex) - $(cmake-utils_use truetype PLD_psttf) - $(cmake-utils_use svg PLD_svg) - $(cmake-utils_use wxwidgets PLD_wxpng) - $(cmake-utils_use wxwidgets PLD_wxwidgets) - $(cmake-utils_use X PLD_xwin) - ) - - [[ $(tc-getFC) != *g77 ]] && \ - mycmakeargs+=( - $(cmake-utils_use_enable fortran f95) - ) - - use truetype && mycmakeargs+=( - -DPL_FREETYPE_FONT_PATH:PATH="${EPREFIX}/usr/share/fonts/freefont" - ) - use shapefile && mycmakeargs+=( - -DSHAPELIB_INCLUDE_DIR="${EPREFIX}/usr/include/libshp" - ) - use ocaml && mycmakeargs+=( - -DOCAML_INSTALL_DIR="$(ocamlc -where)" - ) - use python && mycmakeargs+=( - $(cmake-utils_use_enable qt4 pyqt4) - ) - - cmake-utils_src_configure - - # clean up bloated pkg-config files (help linking properly on prefix) - sed -i \ - -e "/Cflags/s:-I\(${EPREFIX}\|\)/usr/include[[:space:]]::g" \ - -e "/Libs/s:-L\(${EPREFIX}\|\)/usr/lib\(64\|\)[[:space:]]::g" \ - -e "s:${LDFLAGS}::g" \ - "${BUILD_DIR}"/pkgcfg/*pc || die -} - -src_test() { - pushd "${BUILD_DIR}" > /dev/null - Xemake test || die "tests failed" - popd > /dev/null -} - -src_install() { - cmake-utils_src_install - if use examples; then - docompress -x /usr/share/doc/${PF}/examples - else - rm -r "${ED}"/usr/share/doc/${PF}/examples || die - fi - if use java; then - rm -r "${ED}"/usr/share/java "${ED}"/usr/$(get_libdir)/jni || die - java-pkg_dojar "${BUILD_DIR}"/examples/java/${PN}.jar - java-pkg_doso "${BUILD_DIR}"/bindings/java/plplotjavac_wrap.so - fi -} -- cgit v1.2.3-65-gdbad