mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
redoflacs: add recipe for version 0.30
This commit is contained in:
42
media-sound/redoflacs/patches/redoflacs-0.30.patchset
Normal file
42
media-sound/redoflacs/patches/redoflacs-0.30.patchset
Normal file
@@ -0,0 +1,42 @@
|
||||
From 97745ef09fe05a0c168aee9a5139c719f412433a Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Wed, 8 Oct 2014 16:21:13 +0000
|
||||
Subject: use nproc instead of /proc
|
||||
|
||||
|
||||
diff --git a/redoflacs b/redoflacs
|
||||
index 829406a..4c15e15 100755
|
||||
--- a/redoflacs
|
||||
+++ b/redoflacs
|
||||
@@ -1554,25 +1554,9 @@ _find_cores()
|
||||
# Set up global variable
|
||||
declare -gi jobs='2' # By default, set $jobs to '2'
|
||||
declare -g jobs_display='(Default)' # Default $jobs determination
|
||||
-
|
||||
- # Check /proc/cpuinfo if /proc is mounted by comparing device numbers to /
|
||||
- if (( $(stat -c %d '/proc') != $(stat -c %d '/') )); then
|
||||
- if [[ -f '/proc/cpuinfo' ]]; then
|
||||
- # /proc/cpuinfo exists, find total number of cores to use
|
||||
- #--
|
||||
- # Store contents of /proc/cpuinfo into core_array
|
||||
- mapfile -n0 -t cores_array < /proc/cpuinfo
|
||||
-
|
||||
- for i in "${cores_array[@]}"; do
|
||||
- # For each line, add processor number to jobs if matched
|
||||
- #--
|
||||
- [[ "${i}" == 'processor'*:' '* ]] && jobs="${i#processor*: }"
|
||||
- done
|
||||
-
|
||||
- ((jobs++)) # +1 to $jobs since 'processor' starts at '0'
|
||||
- jobs_display='(/proc/cpuinfo)' # $jobs dynamically determined
|
||||
- fi
|
||||
- fi
|
||||
+
|
||||
+ jobs=`nproc`
|
||||
+ jobs_display='(nproc)'
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
43
media-sound/redoflacs/redoflacs-0.30.recipe
Normal file
43
media-sound/redoflacs/redoflacs-0.30.recipe
Normal file
@@ -0,0 +1,43 @@
|
||||
SUMMARY="Parallel BASH commandline FLAC tool."
|
||||
DESCRIPTION="
|
||||
redoflacs is a parallel BASH commandline FLAC compressor, verifier, \
|
||||
organizer, analyzer, and retagger
|
||||
"
|
||||
HOMEPAGE="http://github.com/sirjaren/redoflacs/"
|
||||
SRC_URI="http://github.com/sirjaren/redoflacs/archive/v$portVersion.tar.gz"
|
||||
SRC_FILENAME="redoflacs-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="96e6b92d6211469181da7f065510984423ee4d5a059265ffb7fc38e81ae4de3f"
|
||||
REVISION="1"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2010-2014 Jaren Stangret"
|
||||
|
||||
PATCHES="redoflacs-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
redoflacs = $portVersion compat >= 0
|
||||
cmd:redoflacs$secondaryArchSuffix
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
cmd:bash$secondaryArchSuffix
|
||||
cmd:flac$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
echo "Nothing to build".
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
install -D redoflacs $binDir/redoflacs
|
||||
}
|
||||
Reference in New Issue
Block a user