[gentoo-commits] repo/gentoo:master commit in: media-gfx/povray/files/

2021-01-31 Thread Conrad Kostecki
commit: 31c72ffcbcaa1f5cecb081b17ee52dbbd9d542ce
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Sun Jan 31 18:48:23 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sun Jan 31 20:38:08 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31c72ffc

media-gfx/povray: remove unused patch

Closes: https://github.com/gentoo/gentoo/pull/19275
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Signed-off-by: Conrad Kostecki  gentoo.org>

 .../povray/files/povray-3.7.0.0-boost-1.50.patch   | 72 --
 1 file changed, 72 deletions(-)

diff --git a/media-gfx/povray/files/povray-3.7.0.0-boost-1.50.patch 
b/media-gfx/povray/files/povray-3.7.0.0-boost-1.50.patch
deleted file mode 100644
index f8e807ad647..000
--- a/media-gfx/povray/files/povray-3.7.0.0-boost-1.50.patch
+++ /dev/null
@@ -1,72 +0,0 @@
- configure.ac | 26 ++
- vfe/unix/platformbase.cpp |  2 +-
- 2 files changed, 7 insertions(+), 21 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 51596f8..900c150 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -57,8 +57,6 @@ AC_CONFIG_SRCDIR([unix/disp_text.cpp])
- m4_include([unix/config/acx_pthread.m4])
- m4_include([unix/config/ax_arg_enable.m4])
- m4_include([unix/config/ax_arg_with.m4])
--m4_include([unix/config/ax_boost_base.m4])
--m4_include([unix/config/ax_boost_thread.m4])
- m4_include([unix/config/ax_test_compiler_flags.m4])
- m4_include([unix/config/ax_check_lib.m4])
- m4_include([unix/config/ax_check_libjpeg.m4])
-@@ -168,6 +166,7 @@ AC_CANONICAL_HOST
- 
- AM_INIT_AUTOMAKE([1.9 dist-bzip2])
- AM_MAINTAINER_MODE
-+LT_INIT
- 
- AX_FIX_INCORRECT_PATH(C_INCLUDE_PATH, ".", [pov_warn_path="$pov_warn_path 
C_INCLUDE_PATH"])
- AX_FIX_INCORRECT_PATH(CPLUS_INCLUDE_PATH, ".", [pov_warn_path="$pov_warn_path 
CPLUS_INCLUDE_PATH"])
-@@ -298,28 +297,15 @@ LIBS="$LIBS $PTHREAD_CFLAGS $PTHREAD_LIBS"  # append
- 
- # Boost; required library
- # the following macro stops with error when boost is not found
--AX_BOOST_BASE([$required_libboost_version])
--AX_BOOST_THREAD
--if test x"$ax_cv_boost_thread" != x"yes"; then
-+BOOST_REQUIRE([$required_libboost_version])
-+BOOST_THREADS
-+if test x"$boost_cv_lib_thread" != x"yes"; then
-   AC_MSG_ERROR([cannot find a suitable boost thread library])
- else
-   CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"  # append
--  LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" # append
--  LIBS="$BOOST_THREAD_LIB $LIBS"
-+  LDFLAGS="$LDFLAGS -L$BOOST_LDPATH" # append
-+  LIBS="$BOOST_THREAD_LIBS $LIBS"
- fi
--AC_MSG_CHECKING([whether the boost thread library is usable])
--AC_RUN_IFELSE(
--  [AC_LANG_PROGRAM([[
--#include 
--]],
--[[boost::defer_lock_t(); return 0;]])],
--  [AC_MSG_RESULT([yes])],
--  [
--AC_MSG_RESULT([no])
--AC_MSG_FAILURE([cannot link with the boost thread library])
--  ],
--  [AC_MSG_RESULT([cross-compiling])]  # FIXME
--)
- AC_DEFINE([USE_OFFICIAL_BOOST], [], [Use the official Boost libraries.])
- 
- # Intel Math Kernel library
-diff --git a/vfe/unix/platformbase.cpp b/vfe/unix/platformbase.cpp
-index 8669d19..83c0191 100644
 a/vfe/unix/platformbase.cpp
-+++ b/vfe/unix/platformbase.cpp
-@@ -68,7 +68,7 @@ namespace pov_base
- #else
-   // taken from source/base/timer.cpp
-   boost::xtime t;
--  boost::xtime_get(, boost::TIME_UTC);
-+  boost::xtime_get(, POV_TIME_UTC);
-   POV_ULONG ns = (POV_ULONG)(t.sec) * (POV_ULONG)(10) + 
(POV_ULONG)(t.nsec) + (POV_ULONG)(msec) * (POV_ULONG)(100);
-   t.sec = (boost::xtime::xtime_sec_t)(ns / 
(POV_ULONG)(10));
-   t.nsec = (boost::xtime::xtime_nsec_t)(ns % 
(POV_ULONG)(10));



[gentoo-commits] repo/gentoo:master commit in: media-gfx/povray/files/, media-gfx/povray/

2016-04-03 Thread David Seifert
commit: d0c6bb10aef3c02beb00dc4960d09c8b747d4e52
Author: David Seifert  gentoo  org>
AuthorDate: Sun Apr  3 22:25:18 2016 +
Commit: David Seifert  gentoo  org>
CommitDate: Sun Apr  3 22:25:35 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0c6bb10

media-gfx/povray: Fix build system, add AX_BOOST_SYSTEM

Gentoo-Bug: 550018
* EAPI=6
* Switch back to autoconf-archive macros, scrap boost.m4
* Fix underlinking caused by recent boost versions
  requiring linking to boost::system

Package-Manager: portage-2.2.28

 .../files/povray-3.7.0.0-r1-boost-1.50.patch   | 108 
 media-gfx/povray/povray-3.7.0.0-r1.ebuild  | 142 +
 2 files changed, 250 insertions(+)

diff --git a/media-gfx/povray/files/povray-3.7.0.0-r1-boost-1.50.patch 
b/media-gfx/povray/files/povray-3.7.0.0-r1-boost-1.50.patch
new file mode 100644
index 000..8a30041
--- /dev/null
+++ b/media-gfx/povray/files/povray-3.7.0.0-r1-boost-1.50.patch
@@ -0,0 +1,108 @@
+Remove bundled m4 macros, instead use system ones from
+sys-devel/autoconf-archive. Use AX_BOOST_SYSTEM to prevent
+underlinking issues with more recent boost versions.
+See also: https://bugs.gentoo.org/show_bug.cgi?id=550018
+
+--- povray-3.7.0.0/unix/configure.ac
 povray-3.7.0.0/unix/configure.ac
+@@ -54,23 +54,7 @@
+ AC_CONFIG_SRCDIR([unix/disp_text.cpp])
+ 
+ # Additional autoconf macros.
+-m4_include([unix/config/acx_pthread.m4])
+-m4_include([unix/config/ax_arg_enable.m4])
+-m4_include([unix/config/ax_arg_with.m4])
+-m4_include([unix/config/ax_boost_base.m4])
+-m4_include([unix/config/ax_boost_thread.m4])
+-m4_include([unix/config/ax_test_compiler_flags.m4])
+-m4_include([unix/config/ax_check_lib.m4])
+-m4_include([unix/config/ax_check_libjpeg.m4])
+-m4_include([unix/config/ax_check_libsdl.m4])
+-m4_include([unix/config/ax_check_libtiff.m4])
+-m4_include([unix/config/ax_check_openexr.m4])
+-m4_include([unix/config/ax_compare_version.m4])
+-m4_include([unix/config/ax_compiler_vendor.m4])
+-m4_include([unix/config/ax_compiler_version.m4])
+-m4_include([unix/config/ax_fix_incorrect_path.m4])
+-m4_include([unix/config/ax_prog_ld_static.m4])
+-m4_include([unix/config/ax_x86_arch.m4])
++AC_CONFIG_MACRO_DIR([unix/config])
+ 
+ # Required versions of the support libraries.
+ # Must be declared after AC_INIT.
+@@ -166,7 +150,7 @@
+ AC_CANONICAL_BUILD
+ AC_CANONICAL_HOST
+ 
+-AM_INIT_AUTOMAKE([1.9 dist-bzip2])
++AM_INIT_AUTOMAKE([1.9 dist-bzip2 subdir-objects])
+ AM_MAINTAINER_MODE
+ 
+ AX_FIX_INCORRECT_PATH(C_INCLUDE_PATH, ".", [pov_warn_path="$pov_warn_path 
C_INCLUDE_PATH"])
+@@ -184,6 +168,7 @@
+ CFLAGS="$CFLAGS"
+ AC_PROG_CC
+ AC_PROG_CPP
++AM_PROG_AR
+ 
+ # Force checking essential (ANSI-compliant) headers.
+ AC_CHECK_HEADERS([stdlib.h])
+@@ -292,13 +277,14 @@
+ fi
+ 
+ # Posix threads
+-ACX_PTHREAD
++AX_PTHREAD
+ CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"  # append
+ LIBS="$LIBS $PTHREAD_CFLAGS $PTHREAD_LIBS"  # append
+ 
+ # Boost; required library
+ # the following macro stops with error when boost is not found
+ AX_BOOST_BASE([$required_libboost_version])
++AX_BOOST_SYSTEM
+ AX_BOOST_THREAD
+ if test x"$ax_cv_boost_thread" != x"yes"; then
+   AC_MSG_ERROR([cannot find a suitable boost thread library])
+@@ -307,19 +293,6 @@
+   LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" # append
+   LIBS="$BOOST_THREAD_LIB $LIBS"
+ fi
+-AC_MSG_CHECKING([whether the boost thread library is usable])
+-AC_RUN_IFELSE(
+-  [AC_LANG_PROGRAM([[
+-#include 
+-]],
+-[[boost::defer_lock_t(); return 0;]])],
+-  [AC_MSG_RESULT([yes])],
+-  [
+-AC_MSG_RESULT([no])
+-AC_MSG_FAILURE([cannot link with the boost thread library])
+-  ],
+-  [AC_MSG_RESULT([cross-compiling])]  # FIXME
+-)
+ AC_DEFINE([USE_OFFICIAL_BOOST], [], [Use the official Boost libraries.])
+ 
+ # Intel Math Kernel library
+--- povray-3.7.0.0/unix/prebuild.sh
 povray-3.7.0.0/unix/prebuild.sh
+@@ -439,7 +439,8 @@
+ # Beware: order does matter!
+ LDADD = \\
+   \$(top_builddir)/vfe/libvfe.a \\
+-  \$(top_builddir)/source/libpovray.a
++  \$(top_builddir)/source/libpovray.a \\
++  @BOOST_SYSTEM_LIB@
+ pbEOF
+   ;;
+ esac
+--- povray-3.7.0.0/vfe/unix/platformbase.cpp
 povray-3.7.0.0/vfe/unix/platformbase.cpp
+@@ -68,7 +68,7 @@
+ #else
+   // taken from source/base/timer.cpp
+   boost::xtime t;
+-  boost::xtime_get(, boost::TIME_UTC);
++  boost::xtime_get(, POV_TIME_UTC);
+   POV_ULONG ns = (POV_ULONG)(t.sec) * (POV_ULONG)(10) + 
(POV_ULONG)(t.nsec) + (POV_ULONG)(msec) * (POV_ULONG)(100);
+   t.sec = (boost::xtime::xtime_sec_t)(ns / 
(POV_ULONG)(10));
+   t.nsec = (boost::xtime::xtime_nsec_t)(ns % 
(POV_ULONG)(10));

diff --git a/media-gfx/povray/povray-3.7.0.0-r1.ebuild 
b/media-gfx/povray/povray-3.7.0.0-r1.ebuild
new file mode 100644
index 000..5f0b81f
--- /dev/null
+++ b/media-gfx/povray/povray-3.7.0.0-r1.ebuild
@@ -0,0 +1,142 @@
+#