Github messages for voidlinux
 help / color / mirror / Atom feed
From: ahesford <ahesford@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New packages: tageditor, tagparser and c++utilities
Date: Sat, 11 Apr 2020 14:07:53 +0200	[thread overview]
Message-ID: <20200411120753.-rxORICZ1OIzTKcrxjgj3XyVcESgqGdE_jca3G1jJzM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-19844@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 636 bytes --]

There is an updated pull request by ahesford against master on the void-packages repository

https://github.com/ahesford/void-packages tageditor
https://github.com/void-linux/void-packages/pull/19844

New packages: tageditor, tagparser and c++utilities
This PR introduces packages for `tageditor` and its dependencies, `tagparser` and `c++utilities`. `tageditor` is a utility to manipulate tags on audio and video files. This build enables an optional qt5 GUI but provides build options to package a CLI-only version to keep dependencies light.

A patch file from https://github.com/void-linux/void-packages/pull/19844.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tageditor-19844.patch --]
[-- Type: text/x-diff, Size: 10567 bytes --]

From 8a4dc1677ab1c583991042e2320eec57233d2f68 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Fri, 6 Mar 2020 09:55:01 -0500
Subject: [PATCH 1/4] New package: cpp-utilities-5.2.0_1

---
 common/shlibs                  |  2 ++
 srcpkgs/cpp-utilities-devel    |  1 +
 srcpkgs/cpp-utilities/template | 36 ++++++++++++++++++++++++++++++++++
 3 files changed, 39 insertions(+)
 create mode 120000 srcpkgs/cpp-utilities-devel
 create mode 100644 srcpkgs/cpp-utilities/template

diff --git a/common/shlibs b/common/shlibs
index 2deca5d7cb0..14654fdc999 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3857,3 +3857,5 @@ libbudgietheme.so.0 budgie-desktop-10.5.1_1
 libbudgie-plugin.so.0 budgie-desktop-10.5.1_1
 libslirp.so.0 libslirp-4.2.0_1
 libqpdf.so.28 libqpdf-10.0.0_1
+libc++utilities.so.5 cpp-utilities-5.2.0_1
+libtagparser.so.9 tagparser-9.1.2_1
diff --git a/srcpkgs/cpp-utilities-devel b/srcpkgs/cpp-utilities-devel
new file mode 120000
index 00000000000..1578dc70d85
--- /dev/null
+++ b/srcpkgs/cpp-utilities-devel
@@ -0,0 +1 @@
+cpp-utilities
\ No newline at end of file
diff --git a/srcpkgs/cpp-utilities/template b/srcpkgs/cpp-utilities/template
new file mode 100644
index 00000000000..9334dc26286
--- /dev/null
+++ b/srcpkgs/cpp-utilities/template
@@ -0,0 +1,36 @@
+# Template file for 'cpp-utilities'
+pkgname=cpp-utilities
+version=5.2.0
+revision=1
+wrksrc="${pkgname}-${version}"
+build_style=cmake
+configure_args="-DBUILD_SHARED_LIBS=ON"
+short_desc="C++ library for argument parsing, IO, parsing and more"
+maintainer="Andrew J. Hesford <ajh@sideband.org>"
+license="GPL-2.0-only"
+homepage="https://github.com/Martchus/cpp-utilities"
+distfiles="https://github.com/Martchus/${pkgname}/archive/v${version}.tar.gz"
+checksum=34b4ef7b8d5ce04ebb4ce685ce6a51656e7bd26f902796c2b4b904f54a97871f
+
+cpp-utilities-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.so"
+		vmove usr/lib/pkgconfig
+
+		# Rename cmake modules to fit with the rest of the system
+		vmkdir usr/lib/cmake
+		cmake_source="${DESTDIR}/usr/share/c++utilities/cmake"
+		cmake_dest="${PKGDESTDIR}/usr/lib/cmake/c++utilities"
+		mv "$cmake_source" "$cmake_dest"
+
+		# Update cmake configuration to point to new location
+		vsed -i "${cmake_dest}/c++utilitiesConfig.cmake" \
+			-e "s@share/c++utilities/cmake@lib/cmake/c++utilities@g"
+
+		# The rest of share is just development-related stuff
+		vmove usr/share/c++utilities
+	}
+}

From 5f338efad19483596f988bc2b75c1b24d3e83cb7 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Fri, 6 Mar 2020 10:14:35 -0500
Subject: [PATCH 2/4] New package: tagparser-9.1.2_1

---
 srcpkgs/cpp-utilities/template |  2 +-
 srcpkgs/tagparser-devel        |  1 +
 srcpkgs/tagparser/template     | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/tagparser-devel
 create mode 100644 srcpkgs/tagparser/template

diff --git a/srcpkgs/cpp-utilities/template b/srcpkgs/cpp-utilities/template
index 9334dc26286..bb6e5a33183 100644
--- a/srcpkgs/cpp-utilities/template
+++ b/srcpkgs/cpp-utilities/template
@@ -4,7 +4,7 @@ version=5.2.0
 revision=1
 wrksrc="${pkgname}-${version}"
 build_style=cmake
-configure_args="-DBUILD_SHARED_LIBS=ON"
+configure_args="-DBUILD_SHARED_LIBS:BOOL=ON"
 short_desc="C++ library for argument parsing, IO, parsing and more"
 maintainer="Andrew J. Hesford <ajh@sideband.org>"
 license="GPL-2.0-only"
diff --git a/srcpkgs/tagparser-devel b/srcpkgs/tagparser-devel
new file mode 120000
index 00000000000..d0a44486925
--- /dev/null
+++ b/srcpkgs/tagparser-devel
@@ -0,0 +1 @@
+tagparser
\ No newline at end of file
diff --git a/srcpkgs/tagparser/template b/srcpkgs/tagparser/template
new file mode 100644
index 00000000000..9b588ecbbb3
--- /dev/null
+++ b/srcpkgs/tagparser/template
@@ -0,0 +1,34 @@
+# Template file for 'tagparser'
+pkgname=tagparser
+version=9.1.2
+revision=1
+build_style=cmake
+configure_args="-DBUILD_SHARED_LIBS:BOOL=ON"
+makedepends="cpp-utilities-devel zlib-devel"
+short_desc="C++ library for handling AAC, ID3, Vorbis, Opus, FLAC and Matroska tags"
+maintainer="Andrew J. Hesford <ajh@sideband.org>"
+license="GPL-2.0-only"
+homepage="https://github.com/Martchus/tagparser"
+distfiles="https://github.com/Martchus/${pkgname}/archive/v${version}.tar.gz"
+checksum=234987086ac0dff279a3888b0e965294fdca6adb7412b063ea36f2cc564fbce2
+
+tagparser-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision} cpp-utilities-devel"
+
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.so"
+		vmove usr/lib/pkgconfig
+
+		# Rename cmake modules to fit with the rest of the system
+		vmkdir usr/lib/cmake
+		cmake_source="${DESTDIR}/usr/share/${sourcepkg}/cmake"
+		cmake_dest="${PKGDESTDIR}/usr/lib/cmake/${sourcepkg}"
+		mv "$cmake_source" "$cmake_dest"
+
+		# Update cmake configuration to point to new location
+		vsed -i "${cmake_dest}/${sourcepkg}Config.cmake" \
+			-e "s@share/${sourcepkg}/cmake@lib/cmake/${sourcepkg}@g"
+	}
+}

From c531ebae5d852800774e4b7d7cf7feeca2400b7b Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Fri, 20 Mar 2020 13:44:02 -0400
Subject: [PATCH 3/4] New package: qtutilities-6.0.4

---
 common/shlibs                |  1 +
 srcpkgs/qtutilities-devel    |  1 +
 srcpkgs/qtutilities/template | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 36 insertions(+)
 create mode 120000 srcpkgs/qtutilities-devel
 create mode 100644 srcpkgs/qtutilities/template

diff --git a/common/shlibs b/common/shlibs
index 14654fdc999..335c65fc8e2 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3859,3 +3859,4 @@ libslirp.so.0 libslirp-4.2.0_1
 libqpdf.so.28 libqpdf-10.0.0_1
 libc++utilities.so.5 cpp-utilities-5.2.0_1
 libtagparser.so.9 tagparser-9.1.2_1
+libqtutilities.so.6 qtutilities-6.0.4_1
diff --git a/srcpkgs/qtutilities-devel b/srcpkgs/qtutilities-devel
new file mode 120000
index 00000000000..c74750f1460
--- /dev/null
+++ b/srcpkgs/qtutilities-devel
@@ -0,0 +1 @@
+qtutilities
\ No newline at end of file
diff --git a/srcpkgs/qtutilities/template b/srcpkgs/qtutilities/template
new file mode 100644
index 00000000000..419148f2708
--- /dev/null
+++ b/srcpkgs/qtutilities/template
@@ -0,0 +1,34 @@
+# Template file for 'qtutilities'
+pkgname=qtutilities
+version=6.0.4
+revision=1
+build_style=cmake
+configure_args="-DBUILD_SHARED_LIBS:BOOL=ON"
+hostmakedepends="qt5-qmake qt5-host-tools"
+makedepends="qt5-tools-devel cpp-utilities-devel"
+short_desc="Qt helper routines, including dialogs, widgets, and models"
+maintainer="Andrew J. Hesford <ajh@sideband.org>"
+license="GPL-2.0-only"
+homepage="https://github.com/Martchus/qtutilities"
+distfiles="https://github.com/Martchus/${pkgname}/archive/v${version}.tar.gz"
+checksum=c5ffbeb96607212386077bad00818e0c21920e342e118a5f77e923d07018e20f
+
+qtutilities-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision} cpp-utilities-devel"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.so"
+		vmove usr/lib/pkgconfig
+
+		# Rename cmake modules to fit with the rest of the system
+		vmkdir usr/lib/cmake
+		cmake_source="${DESTDIR}/usr/share/${sourcepkg}/cmake"
+		cmake_dest="${PKGDESTDIR}/usr/lib/cmake/${sourcepkg}"
+		mv "$cmake_source" "$cmake_dest"
+
+		# Update cmake configuration to point to new location
+		vsed -i "${cmake_dest}/${sourcepkg}Config.cmake" \
+			-e "s@share/${sourcepkg}/cmake@lib/cmake/${sourcepkg}@g"
+	}
+}

From cb2de89acd8337982217a95c2bdeb10927eee9a5 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Fri, 6 Mar 2020 10:49:22 -0500
Subject: [PATCH 4/4] New package: tageditor-3.3.4_1

---
 srcpkgs/tageditor/template | 72 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)
 create mode 100644 srcpkgs/tageditor/template

diff --git a/srcpkgs/tageditor/template b/srcpkgs/tageditor/template
new file mode 100644
index 00000000000..bbdf7befc3f
--- /dev/null
+++ b/srcpkgs/tageditor/template
@@ -0,0 +1,72 @@
+# Template file for 'tageditor'
+pkgname=tageditor
+version=3.3.4
+revision=1
+build_style=cmake
+configure_args="-DBUILD_SHARED_LIBS:BOOL=ON"
+makedepends="tagparser-devel cpp-utilities-devel"
+short_desc="Tag editor for AAC, ID3, Vorbis, Opus, FLAC and Matroska"
+maintainer="Andrew J. Hesford <ajh@sideband.org>"
+license="GPL-2.0-only"
+homepage="https://github.com/Martchus/tageditor"
+distfiles="https://github.com/Martchus/${pkgname}/archive/v${version}.tar.gz"
+checksum=0874301bd7644a312d259d54a8b60366c0db80e5b1179c1039cad9905c95463d
+
+build_options="qt webengine webkit script"
+build_options_default="qt"
+
+desc_option_webengine="Enable support for qt5-webengine file views (requires qt)"
+desc_option_webkit="Enable support for qt5-webkit file views (requires qt)"
+desc_option_script="Enable support for qt5-script javascript (requires qt)"
+
+# Prefer qt5-webengine to qt5-webkit, if it can be built
+case "$XBPS_TARGET_MACHINE" in
+	# qt5-webengine not supported on these architectures
+	ppc|ppc-musl|armv5tel*);;
+	*) if [ "$XBPS_WORDSIZE" = "$XBPS_TARGET_WORDSIZE" ]; then
+		# webengine can be built only if word size matches
+		webview_backend="webengine"
+	fi;;
+esac
+build_options_default+=" ${webview_backend:-webkit}"
+
+vopt_conflict webengine webkit
+
+if [ "$build_option_qt" ]; then
+	hostmakedepends+=" qt5-host-tools qt5-qmake"
+	makedepends+=" qtutilities-devel qt5-tools-devel qt5-declarative-devel"
+
+	if [ "$build_option_webengine" ]; then
+		configure_args+=" -DWEBVIEW_PROVIDER=webengine"
+		makedepends+=" qt5-location-devel
+				qt5-webengine-devel qt5-webchannel-devel"
+	elif [ "$build_option_webkit" ]; then
+		configure_args+=" -DWEBVIEW_PROVIDER=webkit"
+		makedepends+=" qt5-webkit-devel"
+	else
+		configure_args+=" -DWEBVIEW_PROVIDER=none"
+	fi
+
+	if [ "$build_option_script" ]; then
+		configure_args+=" -DJS_PROVIDER=script"
+		makedepends+=" qt5-script-devel"
+	else
+		configure_args+=" -DJS_PROVIDER=qml"
+	fi
+else
+	configure_args+=" -DWIDGETS_GUI:BOOL=OFF -DQUICK_GUI:BOOL=OFF"
+fi
+
+pre_build() {
+	if [ -z "$build_option_qt" ]; then
+		vsed -i application/main.cpp -e "/^using namespace QtUtilities;$/s@^@//@"
+	fi
+}
+
+post_install() {
+	if [ -z "$build_option_qt" ]; then
+		rm -rf "${DESTDIR}/usr/share/metainfo"
+		rm -rf "${DESTDIR}/usr/share/icons"
+		rm -rf "${DESTDIR}/usr/share/applications"
+	fi
+}

  parent reply	other threads:[~2020-04-11 12:07 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-19844@inbox.vuxu.org>
2020-03-30 22:59 ` ahesford
2020-03-30 23:15 ` ahesford
2020-04-06 16:30 ` [PR PATCH] [Updated] " ahesford
2020-04-06 17:40 ` ahesford
2020-04-07 17:34 ` ahesford
2020-04-11 11:31 ` Chocimier
2020-04-11 12:07 ` ahesford [this message]
2020-04-11 12:08 ` ahesford
2020-04-15 19:05 ` [PR PATCH] [Updated] " ahesford
2020-04-15 20:25 ` Chocimier
2020-04-15 20:54 ` [PR PATCH] [Updated] " ahesford
2020-04-15 21:09 ` ahesford
2020-04-15 21:11 ` ahesford
2020-04-15 21:19 ` Chocimier
2020-04-15 21:19 ` [PR PATCH] [Merged]: " Chocimier

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=20200411120753.-rxORICZ1OIzTKcrxjgj3XyVcESgqGdE_jca3G1jJzM@z \
    --to=ahesford@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).