From bdeeba27721580779fff75cdf343df30fb48390b Mon Sep 17 00:00:00 2001 From: sunpoet Date: Wed, 27 May 2015 16:22:17 +0000 Subject: - Move audio/rubygem-shout to audio/rubygem-ruby-shout - Fix build with ruby22 - Add LICENSE - Update WWW --- audio/Makefile | 2 +- audio/rubygem-ruby-shout/Makefile | 22 +++++++++++++++++ audio/rubygem-ruby-shout/distinfo | 2 ++ .../rubygem-ruby-shout/files/patch-ext-shout_ext.c | 11 +++++++++ audio/rubygem-ruby-shout/pkg-descr | 4 ++++ audio/rubygem-shout/Makefile | 28 ---------------------- audio/rubygem-shout/distinfo | 2 -- audio/rubygem-shout/pkg-descr | 4 ---- 8 files changed, 40 insertions(+), 35 deletions(-) create mode 100644 audio/rubygem-ruby-shout/Makefile create mode 100644 audio/rubygem-ruby-shout/distinfo create mode 100644 audio/rubygem-ruby-shout/files/patch-ext-shout_ext.c create mode 100644 audio/rubygem-ruby-shout/pkg-descr delete mode 100644 audio/rubygem-shout/Makefile delete mode 100644 audio/rubygem-shout/distinfo delete mode 100644 audio/rubygem-shout/pkg-descr (limited to 'audio') diff --git a/audio/Makefile b/audio/Makefile index 07083e7b9b07..8645f0c84717 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -658,7 +658,7 @@ SUBDIR += rubygem-librmpd SUBDIR += rubygem-ruby-mp3info SUBDIR += rubygem-ruby-ogginfo - SUBDIR += rubygem-shout + SUBDIR += rubygem-ruby-shout SUBDIR += rubyripper SUBDIR += s3mod SUBDIR += sbagen diff --git a/audio/rubygem-ruby-shout/Makefile b/audio/rubygem-ruby-shout/Makefile new file mode 100644 index 000000000000..08c2a5d706cf --- /dev/null +++ b/audio/rubygem-ruby-shout/Makefile @@ -0,0 +1,22 @@ +# Created by: Steve Wills +# $FreeBSD$ + +PORTNAME= ruby-shout +PORTVERSION= 2.2.1 +PORTREVISION= 1 +CATEGORIES= audio rubygems +MASTER_SITES= RG + +MAINTAINER= ruby@FreeBSD.org +COMMENT= Ruby binding to the libshout library + +LICENSE= BSD3CLAUSE + +LIB_DEPENDS= libshout.so:${PORTSDIR}/audio/libshout + +CONFIGURE_ARGS= --with-opt-include="${LOCALBASE}/include" +USE_RUBY= yes +USE_RUBYGEMS= yes +RUBYGEM_AUTOPLIST= yes + +.include diff --git a/audio/rubygem-ruby-shout/distinfo b/audio/rubygem-ruby-shout/distinfo new file mode 100644 index 000000000000..f512f20b831c --- /dev/null +++ b/audio/rubygem-ruby-shout/distinfo @@ -0,0 +1,2 @@ +SHA256 (rubygem/ruby-shout-2.2.1.gem) = 459da771249a2c05d82a548fed05b97ee8a230b6018b17779150204d91fb93e3 +SIZE (rubygem/ruby-shout-2.2.1.gem) = 12288 diff --git a/audio/rubygem-ruby-shout/files/patch-ext-shout_ext.c b/audio/rubygem-ruby-shout/files/patch-ext-shout_ext.c new file mode 100644 index 000000000000..a07ff0a02b16 --- /dev/null +++ b/audio/rubygem-ruby-shout/files/patch-ext-shout_ext.c @@ -0,0 +1,11 @@ +--- ext/shout_ext.c.orig 2015-05-27 15:58:04 UTC ++++ ext/shout_ext.c +@@ -250,7 +250,7 @@ static VALUE _sh_send(VALUE self, VALUE + shout_connection *s; + GET_SC(self, s); + +- Check_SafeStr(to_send); ++ SafeStringValue(to_send); + err = shout_send(s->conn, (unsigned char *) (RSTRING_PTR(to_send)), + RSTRING_LEN(to_send)); + if(err != SHOUTERR_SUCCESS) { diff --git a/audio/rubygem-ruby-shout/pkg-descr b/audio/rubygem-ruby-shout/pkg-descr new file mode 100644 index 000000000000..30c9bb03d9af --- /dev/null +++ b/audio/rubygem-ruby-shout/pkg-descr @@ -0,0 +1,4 @@ +Ruby-shout is a binding to the libshout library, which sends streaming +MP3/Vorbis to an icecast server with libshout. + +WWW: https://github.com/niko/ruby-shout diff --git a/audio/rubygem-shout/Makefile b/audio/rubygem-shout/Makefile deleted file mode 100644 index e6442969172e..000000000000 --- a/audio/rubygem-shout/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -# Created by: Steve Wills -# $FreeBSD$ - -PORTNAME= shout -PORTVERSION= 2.2.1 -PORTREVISION= 1 -CATEGORIES= audio rubygems -MASTER_SITES= RG -DISTNAME= ruby-${PORTNAME}-${PORTVERSION} - -MAINTAINER= ruby@FreeBSD.org -COMMENT= Ruby binding to the libshout library - -LIB_DEPENDS= libshout.so:${PORTSDIR}/audio/libshout - -USE_RUBY= yes -USE_RUBYGEMS= yes -GEM_NAME= ${DISTNAME} -RUBYGEM_AUTOPLIST= yes -CONFIGURE_ARGS= --with-opt-include="${LOCALBASE}/include" - -.include - -.if ${RUBY_VER} >= 2.2 -BROKEN= Does not build -.endif - -.include diff --git a/audio/rubygem-shout/distinfo b/audio/rubygem-shout/distinfo deleted file mode 100644 index f512f20b831c..000000000000 --- a/audio/rubygem-shout/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (rubygem/ruby-shout-2.2.1.gem) = 459da771249a2c05d82a548fed05b97ee8a230b6018b17779150204d91fb93e3 -SIZE (rubygem/ruby-shout-2.2.1.gem) = 12288 diff --git a/audio/rubygem-shout/pkg-descr b/audio/rubygem-shout/pkg-descr deleted file mode 100644 index 83dbfc06ebca..000000000000 --- a/audio/rubygem-shout/pkg-descr +++ /dev/null @@ -1,4 +0,0 @@ -Ruby-shout is a binding to the libshout library, which sends streaming -MP3/Vorbis to an icecast server with libshout. - -WWW: http://rubygems.org/gems/ruby-shout -- cgit