[arch-commits] Commit in supercollider/trunk (3 files)

David Runge dvzrv at archlinux.org
Sat Mar 21 20:51:40 UTC 2020


    Date: Saturday, March 21, 2020 @ 20:51:39
  Author: dvzrv
Revision: 603104

upgpkg: supercollider 3.11.0-2: Simplifying the patch for devendoring link.
The link package now ships the AbletonLinkConfig.cmake, which allows for a simple find_package() call.
This change is currently being reviewed upstream for inclusion.

Added:
  supercollider/trunk/supercollider-3.11.0-use_system_link.patch
Modified:
  supercollider/trunk/PKGBUILD
Deleted:
  supercollider/trunk/supercollider-3.11.0-devendor_ableton_link.patch

--------------------------------------------------+
 PKGBUILD                                         |   10 ++--
 supercollider-3.11.0-devendor_ableton_link.patch |   43 ---------------------
 supercollider-3.11.0-use_system_link.patch       |   30 ++++++++++++++
 3 files changed, 35 insertions(+), 48 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-21 20:29:28 UTC (rev 603103)
+++ PKGBUILD	2020-03-21 20:51:39 UTC (rev 603104)
@@ -5,7 +5,7 @@
 _name=SuperCollider
 pkgname=supercollider
 pkgver=3.11.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Environment and programming language for real time audio synthesis and algorithmic composition"
 arch=('x86_64')
 url="https://supercollider.github.io"
@@ -21,10 +21,10 @@
             'sc3-plugins: additional extension plugins for scsynth')
 provides=("libscsynth.so" "sclang=${pkgver}" "scsynth=${pkgver}")
 source=("https://github.com/${pkgname}/${pkgname}/releases/download/Version-${pkgver}/${_name}-${pkgver}-Source-linux.tar.bz2"
-        "${pkgname}-3.11.0-devendor_ableton_link.patch")
+        "${pkgname}-3.11.0-use_system_link.patch")
 install="${pkgname}.install"
 sha512sums=('8c93395231caf3617c3dae07e7c94e2253e24ab1a822b64904d5bc67f62fb12e9837ed0cd7210fbbe10cb5a7ff277e80e5f2ec85d6b51026c920851d4fda59a4'
-            'f42f2eb9c61b20b6313f9351e0528c397718bccafd094095d7d1d810eee55efd7b47126be8ef3ba56d6e752dbd270d11111f188c4a88282405af489993b3051d')
+            '2b0ed3a7a0022d9a23beb42a39e6327f28b8c59b6fe976771442df572477f509c1ca3882cdb41c2b277fb4d4b0f07e8bd88a6c4017c522c5e4ff89ce32c9b4cd')
 
 
 prepare() {
@@ -32,8 +32,8 @@
   cd "${pkgname}-${pkgver}"
   # devendoring Ableton Link:
   # https://github.com/supercollider/supercollider/issues/4818
-  # https://github.com/supercollider/supercollider/issues/4818
-  patch -Np1 -i "../${pkgname}-3.11.0-devendor_ableton_link.patch"
+  # https://github.com/supercollider/supercollider/pull/4836
+  patch -Np1 -i "../${pkgname}-3.11.0-use_system_link.patch"
   # removing macOS hidden files (due to release tarball issues):
   # https://github.com/supercollider/supercollider/issues/4545
   find . -type f -iname "*\._*" -delete

Deleted: supercollider-3.11.0-devendor_ableton_link.patch
===================================================================
--- supercollider-3.11.0-devendor_ableton_link.patch	2020-03-21 20:29:28 UTC (rev 603103)
+++ supercollider-3.11.0-devendor_ableton_link.patch	2020-03-21 20:51:39 UTC (rev 603104)
@@ -1,43 +0,0 @@
-diff --git c/CMakeLists.txt w/CMakeLists.txt
-index 30d9c8d1a..5e1e9cb89 100644
---- c/CMakeLists.txt
-+++ w/CMakeLists.txt
-@@ -228,6 +228,7 @@ endif()
- 
- option(SC_SYMLINK_CLASSLIB "Place a symlink of SCCLassLibrary instead of copying" OFF)
- 
-+option(SYSTEM_ABLETON_LINK "Use link from system" OFF)
- option(SYSTEM_BOOST   "Use boost libraries from system" OFF)
- option(SYSTEM_YAMLCPP "Use yaml-cpp library from system" OFF)
- 
-diff --git c/lang/CMakeLists.txt w/lang/CMakeLists.txt
-index 9b5095d11..5374fb29f 100644
---- c/lang/CMakeLists.txt
-+++ w/lang/CMakeLists.txt
-@@ -252,7 +252,25 @@ endif()
- 
- if (SC_ABLETON_LINK)
- 	message(STATUS "Compiling with Ableton Link support")
--	include(../external_libraries/link/AbletonLinkConfig.cmake)
-+	if(SYSTEM_ABLETON_LINK)
-+		find_path(ABLETON_LINK_INCLUDE ableton Link.hpp)
-+		add_library(Ableton::Link IMPORTED INTERFACE)
-+		set_property(TARGET Ableton::Link APPEND PROPERTY
-+			INTERFACE_INCLUDE_DIRECTORIES
-+			${ABLETON_LINK_INCLUDE}/ableton
-+		)
-+		set_property(TARGET Ableton::Link APPEND PROPERTY
-+			INTERFACE_COMPILE_DEFINITIONS
-+			LINK_PLATFORM_LINUX=1
-+		)
-+		set_property(TARGET Ableton::Link APPEND PROPERTY
-+			INTERFACE_SOURCES
-+			${ABLETON_LINK_INCLUDE}/ableton/Link.hpp
-+		)
-+	else()
-+		include(../external_libraries/link/AbletonLinkConfig.cmake)
-+	endif()
-+
- 	target_link_libraries(libsclang Ableton::Link)
- 
- 	add_definitions(-DSC_ABLETON_LINK)

Added: supercollider-3.11.0-use_system_link.patch
===================================================================
--- supercollider-3.11.0-use_system_link.patch	                        (rev 0)
+++ supercollider-3.11.0-use_system_link.patch	2020-03-21 20:51:39 UTC (rev 603104)
@@ -0,0 +1,30 @@
+diff --git c/CMakeLists.txt w/CMakeLists.txt
+index 30d9c8d1a..5e1e9cb89 100644
+--- c/CMakeLists.txt
++++ w/CMakeLists.txt
+@@ -228,6 +228,7 @@ endif()
+ 
+ option(SC_SYMLINK_CLASSLIB "Place a symlink of SCCLassLibrary instead of copying" OFF)
+ 
++option(SYSTEM_ABLETON_LINK "Use link from system" OFF)
+ option(SYSTEM_BOOST   "Use boost libraries from system" OFF)
+ option(SYSTEM_YAMLCPP "Use yaml-cpp library from system" OFF)
+ 
+diff --git c/lang/CMakeLists.txt w/lang/CMakeLists.txt
+index 9b5095d11..29c7898db 100644
+--- c/lang/CMakeLists.txt
++++ w/lang/CMakeLists.txt
+@@ -252,7 +252,12 @@ endif()
+ 
+ if (SC_ABLETON_LINK)
+ 	message(STATUS "Compiling with Ableton Link support")
+-	include(../external_libraries/link/AbletonLinkConfig.cmake)
++	if(SYSTEM_ABLETON_LINK)
++		find_package(AbletonLink HINTS /usr/lib/cmake/ableton-link /usr/lib/cmake/link /usr/share/ableton-link)
++	else()
++		include(../external_libraries/link/AbletonLinkConfig.cmake)
++	endif()
++
+ 	target_link_libraries(libsclang Ableton::Link)
+ 
+ 	add_definitions(-DSC_ABLETON_LINK)



More information about the arch-commits mailing list