aboutsummaryrefslogtreecommitdiffstats
path: root/audio/ruby-musicbrainz
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2004-12-26 04:22:06 +0800
committerknu <knu@FreeBSD.org>2004-12-26 04:22:06 +0800
commitb8a259975e1cecbf498765b0cf604dbbb63cb9a3 (patch)
treebc9f3b8b4d339e90e70280638fdec0660ba170e5 /audio/ruby-musicbrainz
parent3987f35e0384ba2644e19b13747a9c0924cbaa79 (diff)
downloadfreebsd-ports-gnome-b8a259975e1cecbf498765b0cf604dbbb63cb9a3.tar.gz
freebsd-ports-gnome-b8a259975e1cecbf498765b0cf604dbbb63cb9a3.tar.zst
freebsd-ports-gnome-b8a259975e1cecbf498765b0cf604dbbb63cb9a3.zip
Resurrect ruby-musicbrainz, updated to 0.2.0.
Diffstat (limited to 'audio/ruby-musicbrainz')
-rw-r--r--audio/ruby-musicbrainz/Makefile40
-rw-r--r--audio/ruby-musicbrainz/distinfo2
-rw-r--r--audio/ruby-musicbrainz/files/patch-extconf.rb15
-rw-r--r--audio/ruby-musicbrainz/pkg-descr4
-rw-r--r--audio/ruby-musicbrainz/pkg-plist16
5 files changed, 77 insertions, 0 deletions
diff --git a/audio/ruby-musicbrainz/Makefile b/audio/ruby-musicbrainz/Makefile
new file mode 100644
index 000000000000..b3c94da44b1c
--- /dev/null
+++ b/audio/ruby-musicbrainz/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: MB-Ruby
+# Date created: 23 March 2003
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= musicbrainz
+PORTVERSION= 0.2.0
+CATEGORIES= audio ruby
+MASTER_SITES= http://www.pablotron.org/download/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= mb-ruby-${PORTVERSION}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+COMMENT= MusicBrainz bindings for Ruby
+
+LIB_DEPENDS= musicbrainz.4:${PORTSDIR}/audio/libmusicbrainz
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+
+RUBY_SHEBANG_FILES= ${WRKSRC}/examples/*.rb
+
+INSTALL_TARGET= site-install
+
+DOCS= COPYING ChangeLog README TODO
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_MODEXAMPLESDIR}
+ ${CP} -R ${WRKSRC}/examples/* ${RUBY_MODEXAMPLESDIR}/
+ ${MKDIR} ${RUBY_MODDOCDIR}
+.for f in ${DOCS}
+ ${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/audio/ruby-musicbrainz/distinfo b/audio/ruby-musicbrainz/distinfo
new file mode 100644
index 000000000000..33da6fd40a7d
--- /dev/null
+++ b/audio/ruby-musicbrainz/distinfo
@@ -0,0 +1,2 @@
+MD5 (ruby/mb-ruby-0.2.0.tar.gz) = dc71a78de28c2a9e07403a3c63c9bea5
+SIZE (ruby/mb-ruby-0.2.0.tar.gz) = 11877
diff --git a/audio/ruby-musicbrainz/files/patch-extconf.rb b/audio/ruby-musicbrainz/files/patch-extconf.rb
new file mode 100644
index 000000000000..b0fe8d34266e
--- /dev/null
+++ b/audio/ruby-musicbrainz/files/patch-extconf.rb
@@ -0,0 +1,15 @@
+--- extconf.rb.orig Sat Aug 21 19:41:02 2004
++++ extconf.rb Sun Dec 26 05:17:30 2004
+@@ -1,8 +1,8 @@
+ require 'mkmf'
+
+-$LD_FLAGS = "-lstdc++ -lm"
++$LDFLAGS="-L${PREFIX}/lib -lstdc++ -lm"
+
+-have_library('m', 'pow') and
+-have_library('stdc++', '__cxa_rethrow') and
+-have_library('musicbrainz', 'mb_Query') and
++have_library('m') and
++have_library('stdc++') and
++have_library('musicbrainz') and
+ create_makefile('musicbrainz')
diff --git a/audio/ruby-musicbrainz/pkg-descr b/audio/ruby-musicbrainz/pkg-descr
new file mode 100644
index 000000000000..3271adcb8f60
--- /dev/null
+++ b/audio/ruby-musicbrainz/pkg-descr
@@ -0,0 +1,4 @@
+This is MusicBrainz bindings for Ruby.
+
+Author: Paul Duncan (pabs) <pabs@pablotron.org>
+WWW: http://www.pablotron.org/software/mb-ruby/
diff --git a/audio/ruby-musicbrainz/pkg-plist b/audio/ruby-musicbrainz/pkg-plist
new file mode 100644
index 000000000000..c51da6e1595f
--- /dev/null
+++ b/audio/ruby-musicbrainz/pkg-plist
@@ -0,0 +1,16 @@
+%%RUBY_SITEARCHLIBDIR%%/musicbrainz.so
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cdlookup.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/findalbum.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/findartist.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/findtrack.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/getalbum.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/getartist.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/gettrack.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/gettrm.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/submittrm.rb
+%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/COPYING
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/TODO
+%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%