diff options
| author | Rene Ladan <rene@FreeBSD.org> | 2017-01-28 11:18:44 +0000 |
|---|---|---|
| committer | Rene Ladan <rene@FreeBSD.org> | 2017-01-28 11:18:44 +0000 |
| commit | a8d756b01f9ff706209bd632b8c453969017e0d9 (patch) | |
| tree | 0f032f2026aa998d5465c60da29d3e0e749a50c7 /audio/ruby-audiofile | |
| parent | c8a829e6090d329fbd20d3129954aeb741a4c0cb (diff) | |
Notes
Diffstat (limited to 'audio/ruby-audiofile')
| -rw-r--r-- | audio/ruby-audiofile/Makefile | 53 | ||||
| -rw-r--r-- | audio/ruby-audiofile/distinfo | 4 | ||||
| -rw-r--r-- | audio/ruby-audiofile/files/patch-audiofile.c | 96 | ||||
| -rw-r--r-- | audio/ruby-audiofile/pkg-descr | 5 | ||||
| -rw-r--r-- | audio/ruby-audiofile/pkg-plist | 6 |
5 files changed, 0 insertions, 164 deletions
diff --git a/audio/ruby-audiofile/Makefile b/audio/ruby-audiofile/Makefile deleted file mode 100644 index 37a2b2d49940..000000000000 --- a/audio/ruby-audiofile/Makefile +++ /dev/null @@ -1,53 +0,0 @@ -# Created by: Akinori MUSHA aka knu <knu@idaemons.org> -# $FreeBSD$ - -PORTNAME= audiofile -PORTVERSION= 0.2.4 -PORTREVISION= 2 -CATEGORIES= audio ruby -MASTER_SITES= SF/ruby-${PORTNAME}/ruby-${PORTNAME}/${PORTVERSION}:audiofile \ - SF/ruby-${PORTNAME}/cddb/${CDDB_VER}:cddb -PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} -DISTNAME= ruby-${PORTNAME}-${PORTVERSION} -DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:audiofile \ - cddb-${CDDB_VER}${EXTRACT_SUFX}:cddb -DIST_SUBDIR= ruby - -MAINTAINER= ruby@FreeBSD.org -COMMENT= Ruby binding to the audiofile library - -LIB_DEPENDS= libaudiofile.so:audio/libaudiofile - -BROKEN_RUBY22= yes -BROKEN_RUBY23= yes - -OPTIONS_DEFINE= DOCS EXAMPLES - -USE_RUBY= yes -USE_RUBY_EXTCONF= yes - -CDDB_VER= 0.2 -CDDB_WRKSRC= ${WRKDIR}/example - -INSTALL_TARGET= site-install -REINPLACE_ARGS= -i "" - -DEPRECATED= Broken on modern versions of Ruby -EXPIRATION_DATE= 2017-01-28 - -post-patch: - @${REINPLACE_CMD} -E -e "s,/home/jaredj/ruby-lib/(cddb),\1,g" ${CDDB_WRKSRC}/wavcddb - -post-install: - ${STRIP_CMD} ${STAGEDIR}${RUBY_SITEARCHLIBDIR}/audiofile.so - -post-install-DOCS-on: - ${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ - ${INSTALL_DATA} ${WRKSRC}/audiofile.rd ${STAGEDIR}${RUBY_MODDOCDIR}/ - -post-install-EXAMPLES-on: - ${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/cddb/ - ${INSTALL_DATA} ${WRKSRC}/test.rb ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ - ${INSTALL_DATA} ${CDDB_WRKSRC}/* ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/cddb/ - -.include <bsd.port.mk> diff --git a/audio/ruby-audiofile/distinfo b/audio/ruby-audiofile/distinfo deleted file mode 100644 index 900a02ddbb90..000000000000 --- a/audio/ruby-audiofile/distinfo +++ /dev/null @@ -1,4 +0,0 @@ -SHA256 (ruby/ruby-audiofile-0.2.4.tar.gz) = d242653963a992661c08428b02466a4cb4b78b994d47063a370a3261ef5dad26 -SIZE (ruby/ruby-audiofile-0.2.4.tar.gz) = 10785 -SHA256 (ruby/cddb-0.2.tar.gz) = 3b463854a4687d525c059a1ad0c667448687d011f5e49b4c569194f94565c827 -SIZE (ruby/cddb-0.2.tar.gz) = 4109 diff --git a/audio/ruby-audiofile/files/patch-audiofile.c b/audio/ruby-audiofile/files/patch-audiofile.c deleted file mode 100644 index bfb89ae9979b..000000000000 --- a/audio/ruby-audiofile/files/patch-audiofile.c +++ /dev/null @@ -1,96 +0,0 @@ ---- audiofile.c.orig 2003-08-09 23:29:57 UTC -+++ audiofile.c -@@ -161,7 +161,7 @@ static VALUE af_initialize(int argc, VAL - - /* get mode into a C-string */ - mode = malloc(2); -- mode[0] = *(RSTRING(v_mode)->ptr); -+ mode[0] = *(RSTRING_PTR(v_mode)); - mode[1] = '\0'; - - switch(*mode) { -@@ -188,7 +188,7 @@ static VALUE af_initialize(int argc, VAL - switch(*mode) { - case 'r': - -- fh = afOpenFile(RSTRING(v_fn)->ptr, mode, AF_NULL_FILESETUP); -+ fh = afOpenFile(RSTRING_PTR(v_fn), mode, AF_NULL_FILESETUP); - if(fh != AF_NULL_FILEHANDLE) { - afp = ALLOC(struct af_data); - DATA_PTR(obj) = afp; -@@ -212,8 +212,8 @@ static VALUE af_initialize(int argc, VAL - - case 'w': - -- fn = malloc(RSTRING(v_fn)->len+1); -- strcpy(fn, RSTRING(v_fn)->ptr); -+ fn = malloc(RSTRING_LEN(v_fn)+1); -+ strcpy(fn, RSTRING_PTR(v_fn)); - - afp = ALLOC(struct af_data); - DATA_PTR(obj) = afp; -@@ -335,8 +335,8 @@ static VALUE af_read_into(VALUE obj, VAL - - - Check_Type(readIntoString, T_STRING); -- bytes = RSTRING(readIntoString)->len; -- buf = RSTRING(readIntoString)->ptr; -+ bytes = RSTRING_LEN(readIntoString); -+ buf = RSTRING_PTR(readIntoString); - - frame_size = afGetFrameSize(afp->handle, AF_DEFAULT_TRACK, EXPAND_3TO4); - frames = bytes / frame_size; -@@ -357,8 +357,8 @@ static VALUE actually_write(VALUE obj, V - GetAFP(obj, afp); - - Check_Type(writeFromString, T_STRING); -- bytes = RSTRING(writeFromString)->len; -- buf = RSTRING(writeFromString)->ptr; -+ bytes = RSTRING_LEN(writeFromString); -+ buf = RSTRING_PTR(writeFromString); - - frame_size = afGetFrameSize(afp->handle, AF_DEFAULT_TRACK, EXPAND_3TO4); - frames = bytes / frame_size; -@@ -679,18 +679,18 @@ static VALUE af_pcm_mapping_eq(VALUE obj - struct af_data *afp; - - Check_Type(args, T_ARRAY); -- if(RARRAY(args)->len != 1) { -+ if(RARRAY_LEN(args) != 1) { - rb_raise(rb_eArgError, "incorrect argument(s) to AudioFile#pcm_mapping="); - } -- args = *(RARRAY(args)->ptr); -- if(RARRAY(args)->len != 4) { -+ args = *(RARRAY_PTR(args)); -+ if(RARRAY_LEN(args) != 4) { - rb_raise(rb_eArgError, "incorrect argument(s) to AudioFile#pcm_mapping="); - } - -- v_slope = RARRAY(args)->ptr[0]; -- v_intercept = RARRAY(args)->ptr[1]; -- v_min_clip = RARRAY(args)->ptr[2]; -- v_max_clip = RARRAY(args)->ptr[3]; -+ v_slope = RARRAY_PTR(args)[0]; -+ v_intercept = RARRAY_PTR(args)[1]; -+ v_min_clip = RARRAY_PTR(args)[2]; -+ v_max_clip = RARRAY_PTR(args)[3]; - Check_Type(v_slope, T_FLOAT); - Check_Type(v_intercept, T_FLOAT); - Check_Type(v_min_clip, T_FLOAT); -@@ -700,12 +700,12 @@ static VALUE af_pcm_mapping_eq(VALUE obj - - if(af_is_open(afp)) { - afSetTrackPCMMapping(afp->handle, AF_DEFAULT_TRACK, -- RFLOAT(v_slope)->value, RFLOAT(v_intercept)->value, -- RFLOAT(v_min_clip)->value, RFLOAT(v_max_clip)->value); -+ RFLOAT_VALUE(v_slope), RFLOAT_VALUE(v_intercept), -+ RFLOAT_VALUE(v_min_clip), RFLOAT_VALUE(v_max_clip)); - } else { - afInitPCMMapping(afp->setup, AF_DEFAULT_TRACK, -- RFLOAT(v_slope)->value, RFLOAT(v_intercept)->value, -- RFLOAT(v_min_clip)->value, RFLOAT(v_max_clip)->value); -+ RFLOAT_VALUE(v_slope), RFLOAT_VALUE(v_intercept), -+ RFLOAT_VALUE(v_min_clip), RFLOAT_VALUE(v_max_clip)); - } - - return Qnil; diff --git a/audio/ruby-audiofile/pkg-descr b/audio/ruby-audiofile/pkg-descr deleted file mode 100644 index b2a8deeff91f..000000000000 --- a/audio/ruby-audiofile/pkg-descr +++ /dev/null @@ -1,5 +0,0 @@ -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. - -WWW: http://ruby-audiofile.sourceforge.net/ diff --git a/audio/ruby-audiofile/pkg-plist b/audio/ruby-audiofile/pkg-plist deleted file mode 100644 index d9c6d367c3fa..000000000000 --- a/audio/ruby-audiofile/pkg-plist +++ /dev/null @@ -1,6 +0,0 @@ -%%RUBY_SITEARCHLIBDIR%%/audiofile.so -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/audiofile.rd -%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/cddb/batch-oggenc -%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/cddb/cddb.rb -%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/cddb/wavcddb -%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/test.rb |
