Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

AudioTools, an utility for converting audio files. #13531

Closed
wants to merge 1 commit into from

4 participants

@meduz

Python Audio Tools are a collection of audio handling programs which
work from the command line.

It is relatively easy to compile as it is based on known libraries, but
homebrew tries to automate the process. Besides, it was not MacOsX
centered, so a few minor patches were needed.

@meduz meduz AudioTools, an utility for converting audio files.
Python Audio Tools are a collection of audio handling programs which
work from the command line.

It is relatively easy to compile as it is based on known libraries, but
homebrew tries to automate the process. Besides, it was not MacOsX
centered, so a few minor patches were needed.
6e7c79a
@theorician

Does this work on Mountain Lion? Cause I can't roll my own on ML and would like to...

@meduz

I have not installed ML yet, so I can not tell. Can you give the output of

brew -v install --debug audiotools

so that we may hint at an answer?

@theorician

Sorry, I take it back - I didn't realise Xcode's command line tools had been removed by the upgrade. Sigh. Rolling it myself works just fine.

@adamv
Owner

This doesn't appear to install anything into the prefix, it installs directly to /usr/local/share/python which is where we set up a Homebrewed python to install to.

This really needs to install into the formula's prefix and then symlink into appropriate other places if needed.

@mikemcquaid
Owner

Closing until this is updated. Feel free to shout when it is and we'll reopen.

@meduz

fine with me.
the infrastructure of the library makes it difficult (to me) to adapt it to HomeBrew. but there is a solution for those who want to use it and still remain with a relatively clean set-up:

by re-working on that, it appears to be simpler to install requesites and install this library by installing dependencies and then installing it using pip:

brew install lame two-lame mpg123 mp3gain  
brew install libogg libvorbis vorbis-tools  vorbisgain    
brew install faac faad2
pip install -e git+https://github.com/meduz/python-audio-tools.git#egg=python-audio-tools

works on 10.8 with latest xcode 4.6.

cheers,
Laurent

@meduz meduz closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 21, 2012
  1. @meduz

    AudioTools, an utility for converting audio files.

    meduz authored
    Python Audio Tools are a collection of audio handling programs which
    work from the command line.
    
    It is relatively easy to compile as it is based on known libraries, but
    homebrew tries to automate the process. Besides, it was not MacOsX
    centered, so a few minor patches were needed.
This page is out of date. Refresh to see the latest.
Showing with 55 additions and 0 deletions.
  1. +55 −0 Library/Formula/audiotools.rb
View
55 Library/Formula/audiotools.rb
@@ -0,0 +1,55 @@
+require 'formula'
+
+class Audiotools < Formula
+ url 'http://sourceforge.net/projects/audiotools/files/audiotools/2.18/audiotools-2.18.tar.gz'
+ homepage 'http://audiotools.sourceforge.net/'
+ md5 'b168a7e925941cadb1ee0506148db74d'
+
+ depends_on 'lame'
+ depends_on 'libcdio'
+ depends_on 'two-lame'
+ depends_on 'mp3gain'
+ depends_on 'mpg123'
+ depends_on 'faac'
+ depends_on 'faad2'
+ depends_on 'libogg'
+ depends_on 'libvorbis'
+ depends_on 'vorbisgain'
+ depends_on 'vorbis-tools'
+
+ def install
+ system "python", "setup.py", "build"
+ system "python", "setup.py", "install", "--prefix=#{prefix}"
+ end
+
+ def patches
+ # fixes wrong paths and directs to /usr/local
+ DATA
+ end
+end
+
+__END__
+diff --git a/docs/Makefile b/docs/Makefile
+index 1c33b0b..e35a6ce 100644
+--- a/docs/Makefile
++++ b/docs/Makefile
+@@ -1,5 +1,5 @@
+ PYTHON = python
+-MAN_PATH = /usr/share/man
++MAN_PATH = $(PREFIX)/share/man
+ MAN_PAGES = \
+ audiotools-config.1 \
+ audiotools.cfg.5 \
+diff --git a/setup.py b/setup.py
+index dd5bd6f..5ab3d6d 100755
+--- a/setup.py
++++ b/setup.py
+@@ -115,7 +115,7 @@ setup(name='Python Audio Tools',
+ encodersmodule,
+ bitstreammodule,
+ verifymodule],
+- data_files=[("/etc", ["audiotools.cfg"])],
++ data_files=[],
+ scripts=["cd2track", "cdinfo", "cdplay",
+ "track2track", "trackrename", "trackinfo",
+ "tracklength", "track2cd", "trackcmp", "trackplay",
Something went wrong with that request. Please try again.