From: "Andrew Savchenko" <bircoph@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/apulse/files/, media-sound/apulse/
Date: Mon, 24 Sep 2018 10:29:26 +0000 (UTC) [thread overview]
Message-ID: <1537784902.c8e88da1b0ab4577de6ac18abc9e173ed6071e0e.bircoph@gentoo> (raw)
commit: c8e88da1b0ab4577de6ac18abc9e173ed6071e0e
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 24 10:28:22 2018 +0000
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
CommitDate: Mon Sep 24 10:28:22 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8e88da1
media-sound/apulse: fix the wrapper generation.
- Fix the apulse wrapper generation.
- Fix library paths inside apulse wrapper.
- Fix typo in libpulse-simple.pc libdir.
Closes: https://bugs.gentoo.org/666884
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.10
...lse-0.1.12-r2.ebuild => apulse-0.1.12-r3.ebuild} | 10 ++++++----
media-sound/apulse/files/sdk.patch | 21 +++++++++++----------
2 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/media-sound/apulse/apulse-0.1.12-r2.ebuild b/media-sound/apulse/apulse-0.1.12-r3.ebuild
similarity index 92%
rename from media-sound/apulse/apulse-0.1.12-r2.ebuild
rename to media-sound/apulse/apulse-0.1.12-r3.ebuild
index 4ecc9ab745b..f934c4816be 100644
--- a/media-sound/apulse/apulse-0.1.12-r2.ebuild
+++ b/media-sound/apulse/apulse-0.1.12-r3.ebuild
@@ -48,13 +48,15 @@ multilib_src_test() {
emake check
}
-multilib_src_install_all() {
+multilib_src_install() {
cmake-utils_src_install
if ! use sdk; then
- dobin "${T}"/apulse
export MULTILIB_CHOST_TOOLS=( /usr/bin/apulse )
- multilib_foreach_abi multilib_prepare_wrappers
- multilib_install_wrappers
+ multilib_prepare_wrappers
fi
+}
+
+multilib_src_install_all() {
+ use sdk || dobin "${T}/apulse"
einstalldocs
}
diff --git a/media-sound/apulse/files/sdk.patch b/media-sound/apulse/files/sdk.patch
index 90d3494344f..bc12090b72e 100644
--- a/media-sound/apulse/files/sdk.patch
+++ b/media-sound/apulse/files/sdk.patch
@@ -1,5 +1,5 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 072f3b1..74fc184 100644
+index 072f3b1..5fe6bcd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,6 @@
@@ -18,17 +18,14 @@ index 072f3b1..74fc184 100644
link_directories(${REQ_LIBRARY_DIRS})
add_library(trace-helper STATIC
-@@ -72,12 +75,31 @@ target_link_libraries(pulse-simple ${SYMBOLMAP} trace-helper ${REQ_LIBRARIES})
+@@ -72,12 +75,30 @@ target_link_libraries(pulse-simple ${SYMBOLMAP} trace-helper ${REQ_LIBRARIES})
add_subdirectory(tests)
-set(APULSEPATH "${CMAKE_INSTALL_PREFIX}/lib/apulse" CACHE PATH "library installation directory")
- set(APULSE_SEARCH_PATHS "${APULSEPATH}" CACHE PATH "directory list for LD_LIBRARY_PATH")
+-set(APULSE_SEARCH_PATHS "${APULSEPATH}" CACHE PATH "directory list for LD_LIBRARY_PATH")
-configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/apulse.template"
- "${CMAKE_CURRENT_BINARY_DIR}/apulse" @ONLY)
-
--install(FILES "${CMAKE_CURRENT_BINARY_DIR}/apulse" DESTINATION bin
-- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
+if (${INSTALL_SDK})
+ set(APULSEPATH "${CMAKE_INSTALL_LIBDIR}" CACHE PATH "library installation directory")
+
@@ -40,13 +37,16 @@ index 072f3b1..74fc184 100644
+ "${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/libpulse-mainloop-glib.pc" @ONLY)
+else()
+ set(APULSEPATH "${CMAKE_INSTALL_LIBDIR}/apulse" CACHE PATH "library installation directory")
++ set(APULSE_SEARCH_PATHS "${CMAKE_INSTALL_PREFIX}/${APULSEPATH}" CACHE PATH "directory list for LD_LIBRARY_PATH")
+
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/apulse.template"
+ "${CMAKE_CURRENT_BINARY_DIR}/apulse" @ONLY)
+endif()
-+
+
+-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/apulse" DESTINATION bin
+- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
install(TARGETS pulse-simple pulse pulse-mainloop-glib DESTINATION "${APULSEPATH}")
- install(FILES "${CMAKE_SOURCE_DIR}/man/apulse.1" DESTINATION share/man/man1)
+-install(FILES "${CMAKE_SOURCE_DIR}/man/apulse.1" DESTINATION share/man/man1)
+
+if (${INSTALL_SDK})
+ install(DIRECTORY "${CMAKE_SOURCE_DIR}/3rdparty/pulseaudio-headers/pulse" DESTINATION include)
@@ -54,6 +54,7 @@ index 072f3b1..74fc184 100644
+else()
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/apulse" DESTINATION bin
+ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
++ install(FILES "${CMAKE_SOURCE_DIR}/man/apulse.1" DESTINATION share/man/man1)
+endif()
diff --git a/pkgconfig/libpulse-mainloop-glib.pc.in b/pkgconfig/libpulse-mainloop-glib.pc.in
new file mode 100644
@@ -72,11 +73,11 @@ index 0000000..957e3b2
+Requires: glib-2.0
diff --git a/pkgconfig/libpulse-simple.pc.in b/pkgconfig/libpulse-simple.pc.in
new file mode 100644
-index 0000000..3809d50
+index 0000000..57d917f
--- /dev/null
+++ b/pkgconfig/libpulse-simple.pc.in
@@ -0,0 +1,9 @@
-+libdir=@CMAKE_INSTALL_FULL__LIBDIR@
++libdir=@CMAKE_INSTALL_FULL_LIBDIR@
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
+
+Name: libpulse-simple
next reply other threads:[~2018-09-24 10:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-24 10:29 Andrew Savchenko [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-09-23 6:36 [gentoo-commits] repo/gentoo:master commit in: media-sound/apulse/files/, media-sound/apulse/ Andrew Savchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1537784902.c8e88da1b0ab4577de6ac18abc9e173ed6071e0e.bircoph@gentoo \
--to=bircoph@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox