diff options
author | knu <knu@FreeBSD.org> | 2001-07-20 19:21:15 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-07-20 19:21:15 +0800 |
commit | 8419b03ae097e5c366b04dfec03336d24a0c4df9 (patch) | |
tree | b376d60ad60ddc544dc5afddf14724ba0345c0cb /audio | |
parent | 18d6ee079d180f7aaa3715f4bae9601ac6f8cda9 (diff) | |
download | freebsd-ports-gnome-8419b03ae097e5c366b04dfec03336d24a0c4df9.tar.gz freebsd-ports-gnome-8419b03ae097e5c366b04dfec03336d24a0c4df9.tar.zst freebsd-ports-gnome-8419b03ae097e5c366b04dfec03336d24a0c4df9.zip |
Add ruby-audiofile, a Ruby binding to the audiofile library.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/ruby-audiofile/Makefile | 56 | ||||
-rw-r--r-- | audio/ruby-audiofile/distinfo | 2 | ||||
-rw-r--r-- | audio/ruby-audiofile/pkg-comment | 1 | ||||
-rw-r--r-- | audio/ruby-audiofile/pkg-descr | 6 | ||||
-rw-r--r-- | audio/ruby-audiofile/pkg-plist | 11 |
6 files changed, 77 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile index 5fbc94d016ab..1a606e6c560a 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -161,6 +161,7 @@ SUBDIR += rosegarden SUBDIR += rplay SUBDIR += rsynth + SUBDIR += ruby-audiofile SUBDIR += s3mod SUBDIR += sbagen SUBDIR += sdl_mixer diff --git a/audio/ruby-audiofile/Makefile b/audio/ruby-audiofile/Makefile new file mode 100644 index 000000000000..98210be36f6e --- /dev/null +++ b/audio/ruby-audiofile/Makefile @@ -0,0 +1,56 @@ +# New ports collection makefile for: ruby-audiofile +# Date created: 20 July 2001 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= audiofile +PORTVERSION= 0.1 +CATEGORIES= audio ruby +MASTER_SITES= http://%SUBDIR%.sourceforge.net/download/ +#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ruby-${PORTNAME} +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${CDDB_DISTNAME}${EXTRACT_SUFX} +DIST_SUBDIR= ruby + +MAINTAINER= knu@FreeBSD.org + +LIB_DEPENDS= audiofile.0:${PORTSDIR}/audio/libaudiofile + +USE_RUBY= yes +USE_RUBY_EXTCONF= yes +.if !defined(NOPORTDOCS) +USE_RUBY_RD= yes +.endif + +CDDB_DISTNAME= cddb-0.1 +CDDB_WRKSRC= ${WRKDIR}/cddb +INSTALL_TARGET= site-install + +DOCS= audiofile.html audiofile.rd + +post-patch: + ${RUBY} -i -pe 'gsub %r|/home/jaredj/ruby-lib/cddb\b|, "cddb"' \ + ${CDDB_WRKSRC}/wavcddb.rb + ${RUBY} -i -pe 'gsub /\(\(<(.*?)(\||>)/, "((<\"\\1\"\\2"' \ + ${WRKSRC}/audiofile.rd + +do-build: +.if !defined(NOPORTDOCS) + cd ${WRKSRC} && ${RUBY_RD} audiofile.rd > audiofile.html +.endif + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}/cddb + ${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_EXAMPLESDIR}/${PORTNAME}/ + ${INSTALL_DATA} ${CDDB_WRKSRC}/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/cddb/ + ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME} +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ +.endfor +.endif + +.include <bsd.port.mk> diff --git a/audio/ruby-audiofile/distinfo b/audio/ruby-audiofile/distinfo new file mode 100644 index 000000000000..f152a35bb818 --- /dev/null +++ b/audio/ruby-audiofile/distinfo @@ -0,0 +1,2 @@ +MD5 (ruby/audiofile-0.1.tar.gz) = 2fa54907bbeb8ab0bfa790febb7d2165 +MD5 (ruby/cddb-0.1.tar.gz) = c6c937c266c71966ad7b898b94656624 diff --git a/audio/ruby-audiofile/pkg-comment b/audio/ruby-audiofile/pkg-comment new file mode 100644 index 000000000000..1fa935e7ac89 --- /dev/null +++ b/audio/ruby-audiofile/pkg-comment @@ -0,0 +1 @@ +A Ruby binding to the audiofile library diff --git a/audio/ruby-audiofile/pkg-descr b/audio/ruby-audiofile/pkg-descr new file mode 100644 index 000000000000..21b411671dcc --- /dev/null +++ b/audio/ruby-audiofile/pkg-descr @@ -0,0 +1,6 @@ +Ruby-audiofile is a binding to the audiofile library, which reads +audio (wav, au, aiff, but not ogg or mp3) and can divine information +such as length, sample rate, etc. + +Author: jared jennings <liver@soon.com> +WWW: http://ruby-audiofile.sourceforge.net/ diff --git a/audio/ruby-audiofile/pkg-plist b/audio/ruby-audiofile/pkg-plist new file mode 100644 index 000000000000..bf88f61917b7 --- /dev/null +++ b/audio/ruby-audiofile/pkg-plist @@ -0,0 +1,11 @@ +%%RUBY_SITEARCHLIBDIR%%/audiofile.so +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/audiofile/test.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/audiofile/cddb/README +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/audiofile/cddb/batch-oggenc.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/audiofile/cddb/cddb.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/audiofile/cddb/wavcddb.rb +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/audiofile/cddb +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/audiofile +%%PORTDOCS%%%%RUBY_DOCDIR%%/audiofile/audiofile.html +%%PORTDOCS%%%%RUBY_DOCDIR%%/audiofile/audiofile.rd +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/audiofile |