summaryrefslogtreecommitdiffstats
path: root/audio-soft
diff options
context:
space:
mode:
authorVlad Glagolev2018-02-10 14:37:13 -0500
committerVlad Glagolev2018-02-10 14:37:13 -0500
commit1e9e9c745c366bf289cd5fef276f482a7128a4d1 (patch)
tree83acd2ecde8582ffa0e49b8f4a1f7613e247649a /audio-soft
parenta3baaf26cf07984b8cc4ac6e5c48276ac819b18a (diff)
tagutil: new spell, CLI music files tags editor
Diffstat (limited to 'audio-soft')
-rwxr-xr-xaudio-soft/tagutil/BUILD3
-rwxr-xr-xaudio-soft/tagutil/CONFIGURE3
-rwxr-xr-xaudio-soft/tagutil/DEPENDS36
-rwxr-xr-xaudio-soft/tagutil/DETAILS17
-rw-r--r--audio-soft/tagutil/HISTORY3
-rwxr-xr-xaudio-soft/tagutil/PRE_BUILD6
6 files changed, 68 insertions, 0 deletions
diff --git a/audio-soft/tagutil/BUILD b/audio-soft/tagutil/BUILD
new file mode 100755
index 0000000000..1733dfbb07
--- /dev/null
+++ b/audio-soft/tagutil/BUILD
@@ -0,0 +1,3 @@
+OPTS="${TAGUTIL_OPTS} ${OPTS}" &&
+
+cmake_build
diff --git a/audio-soft/tagutil/CONFIGURE b/audio-soft/tagutil/CONFIGURE
new file mode 100755
index 0000000000..e8c4b9172e
--- /dev/null
+++ b/audio-soft/tagutil/CONFIGURE
@@ -0,0 +1,3 @@
+config_query_option TAGUTIL_OPTS "Enable stock ID3v1.1 TAG backend?" n \
+ "-DWITH_ID3V1=ON" \
+ "-DWITHOUT_ID3V1=ON"
diff --git a/audio-soft/tagutil/DEPENDS b/audio-soft/tagutil/DEPENDS
new file mode 100755
index 0000000000..eb8197b308
--- /dev/null
+++ b/audio-soft/tagutil/DEPENDS
@@ -0,0 +1,36 @@
+depends cmake &&
+depends pkgconfig &&
+depends libyaml &&
+
+optional_depends taglib \
+ "-DWITH_TAGLIB=ON" \
+ "-DWITHOUT_TAGLIB=ON" \
+ "for TagLib backend support" &&
+
+optional_depends flac \
+ "-DWITH_FLAC=ON" \
+ "-DWITHOUT_FLAC=ON" \
+ "for libFLAC backend support" &&
+
+optional_depends libvorbis \
+ "-DWITH_OGGVORBIS=ON" \
+ "-DWITHOUT_OGGVORBIS=ON" \
+ "for libvorbis backend support" &&
+
+if is_depends_enabled ${SPELL} libvorbis; then
+ depends libogg
+fi &&
+
+optional_depends jansson \
+ "-DWITH_JSON=ON" \
+ "-DWITHOUT_JSON=ON" \
+ "for JSON output format support" &&
+
+if ! is_depends_enabled ${SPELL} taglib && \
+ ! is_depends_enabled ${SPELL} flac && \
+ ! is_depends_enabled ${SPELL} libvorbis && \
+ ! list_find "${TAGUTIL_OPTS}" "-DWITH_ID3V1=ON"; then
+ message "${PROBLEM_COLOR}No backends selected, choose at least one.${DEFAULT_COLOR}" &&
+
+ return 1
+fi
diff --git a/audio-soft/tagutil/DETAILS b/audio-soft/tagutil/DETAILS
new file mode 100755
index 0000000000..3f5e3d2bc5
--- /dev/null
+++ b/audio-soft/tagutil/DETAILS
@@ -0,0 +1,17 @@
+ SPELL=tagutil
+ VERSION=3.0.3
+ SOURCE=${SPELL}-${VERSION}.tar.gz
+ SOURCE_URL[0]=https://github.com/kAworu/${SPELL}/archive/v${VERSION}.tar.gz
+ SOURCE_HASH=sha512:f4a4013c64c466446611bff58064fbeefedd4e141c755de93d9bfd72763d815c1c33fd5e48c9483c2ff859efe60dc3cea4e7cffe2eae2ad2c306d6de73649de5
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ DOC_DIRS="scripts"
+ WEB_SITE=https://github.com/kAworu/tagutil
+ LICENSE[0]=BSD
+ ENTERED=20180210
+ SHORT="CLI music files tags editor"
+cat << EOF
+tagutil is a CLI tool to edit music files' tags. It aims to provide both an
+easy-to-script interface and ease of use interactively. Unlike most other tag
+tools out there, it fully supports Vorbis Comments for both ogg/vorbis files
+and FLAC.
+EOF
diff --git a/audio-soft/tagutil/HISTORY b/audio-soft/tagutil/HISTORY
new file mode 100644
index 0000000000..0236360ea8
--- /dev/null
+++ b/audio-soft/tagutil/HISTORY
@@ -0,0 +1,3 @@
+2018-02-10 Vlad Glagolev <stealth@sourcemage.org>
+ * DETAILS, DEPENDS, CONFIGURE, {PRE_,}BUILD: created spell, version
+ 3.0.3
diff --git a/audio-soft/tagutil/PRE_BUILD b/audio-soft/tagutil/PRE_BUILD
new file mode 100755
index 0000000000..0d1e6d2826
--- /dev/null
+++ b/audio-soft/tagutil/PRE_BUILD
@@ -0,0 +1,6 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+mv src/* . &&
+
+sedit "s:-D_BSD_SOURCE::" CMakeLists.txt