diff options
author | jlam <jlam@pkgsrc.org> | 2008-04-04 15:30:00 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-04-04 15:30:00 +0000 |
commit | d859e2cd8e6d7482da8a48ac5595db14f366ed2e (patch) | |
tree | c080e0fce7907456de3fe1768865d098adfb51fd /devel/ruby-ncurses | |
parent | 176a6c4b746ab60a5e2df96b294e2bcc8d362eee (diff) | |
download | pkgsrc-d859e2cd8e6d7482da8a48ac5595db14f366ed2e.tar.gz |
Install as a gem using the pkgsrc rubygem.mk framework instead of
directly into site_ruby.
Diffstat (limited to 'devel/ruby-ncurses')
-rw-r--r-- | devel/ruby-ncurses/Makefile | 27 | ||||
-rw-r--r-- | devel/ruby-ncurses/PLIST | 44 | ||||
-rw-r--r-- | devel/ruby-ncurses/files/gemspec | 25 |
3 files changed, 68 insertions, 28 deletions
diff --git a/devel/ruby-ncurses/Makefile b/devel/ruby-ncurses/Makefile index a0b890e8541..7cfdf4a2938 100644 --- a/devel/ruby-ncurses/Makefile +++ b/devel/ruby-ncurses/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.6 2007/10/03 14:45:42 heinz Exp $ +# $NetBSD: Makefile,v 1.7 2008/04/04 15:30:00 jlam Exp $ DISTNAME= ncurses-ruby-1.1 -PKGNAME= ${DISTNAME:S/ncurses-ruby/${RUBY_PKGPREFIX}-ncurses/} +PKGNAME= ${RUBY_PKGPREFIX}-${GEM_NAME} +PKGREVISION= 1 CATEGORIES= devel MASTER_SITES= http://download.berlios.de/ncurses-ruby/ EXTRACT_SUFX= .tar.bz2 @@ -10,23 +11,15 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://ncurses-ruby.berlios.de/ COMMENT= Ruby interface to ncurses -USE_RUBY_EXTCONF= yes -USE_NCURSES= yes # mouse functions +USE_NCURSES= yes # mouse functions +GEM_NAME= ${DISTNAME:S/-ruby//} +GEM_BUILD= gemspec +GEM_CLEANBUILD= Makefile *.o ncurses_bin.${RUBY_DLEXT} mkmf.log -EXAMPLES= example.rb hello_ncurses.rb rain.rb read_line.rb \ - tclock.rb test_scanw.rb -.for f in ${EXAMPLES} -REPLACE_RUBY+= example/${f} -.endfor +post-extract: + ${RUN} cp ${FILESDIR}/gemspec ${GEM_SPECFILE} -post-install: - ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/ncurses - ${INSTALL_DATA} ${WRKSRC}/examples/LICENSES_for_examples \ - ${RUBY_EXAMPLESDIR}/ncurses -.for f in ${EXAMPLES} - ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${RUBY_EXAMPLESDIR}/ncurses -.endfor +.include "../../misc/rubygems/rubygem.mk" .include "../../devel/ncurses/buildlink3.mk" -.include "../../lang/ruby/modules.mk" .include "../../mk/bsd.pkg.mk" diff --git a/devel/ruby-ncurses/PLIST b/devel/ruby-ncurses/PLIST index 1affea61202..cb9adde9694 100644 --- a/devel/ruby-ncurses/PLIST +++ b/devel/ruby-ncurses/PLIST @@ -1,11 +1,33 @@ -@comment $NetBSD: PLIST,v 1.2 2007/01/14 04:14:51 taca Exp $ -${RUBY_SITEARCHLIBDIR}/ncurses_bin.${RUBY_DLEXT} -${RUBY_SITELIBDIR}/ncurses.rb -${RUBY_EXAMPLESDIR}/ncurses/LICENSES_for_examples -${RUBY_EXAMPLESDIR}/ncurses/example.rb -${RUBY_EXAMPLESDIR}/ncurses/hello_ncurses.rb -${RUBY_EXAMPLESDIR}/ncurses/rain.rb -${RUBY_EXAMPLESDIR}/ncurses/read_line.rb -${RUBY_EXAMPLESDIR}/ncurses/tclock.rb -${RUBY_EXAMPLESDIR}/ncurses/test_scanw.rb -@dirrm ${RUBY_EXAMPLESDIR}/ncurses +@comment $NetBSD: PLIST,v 1.3 2008/04/04 15:30:00 jlam Exp $ +${GEM_HOME}/cache/ncurses-${PKGVERSION}.gem +${GEM_LIBDIR}/COPYING +${GEM_LIBDIR}/Changes +${GEM_LIBDIR}/MANIFEST +${GEM_LIBDIR}/README +${GEM_LIBDIR}/THANKS +${GEM_LIBDIR}/TODO +${GEM_LIBDIR}/VERSION +${GEM_LIBDIR}/examples/LICENSES_for_examples +${GEM_LIBDIR}/examples/example.rb +${GEM_LIBDIR}/examples/form.rb +${GEM_LIBDIR}/examples/form2.rb +${GEM_LIBDIR}/examples/hello_ncurses.rb +${GEM_LIBDIR}/examples/rain.rb +${GEM_LIBDIR}/examples/read_line.rb +${GEM_LIBDIR}/examples/tclock.rb +${GEM_LIBDIR}/examples/test_scanw.rb +${GEM_LIBDIR}/extconf.rb +${GEM_LIBDIR}/form_wrap.c +${GEM_LIBDIR}/form_wrap.h +${GEM_LIBDIR}/lib/ncurses.rb +${GEM_LIBDIR}/lib/ncurses_bin.${RUBY_DLEXT} +${GEM_LIBDIR}/make_dist.rb +${GEM_LIBDIR}/ncurses_wrap.c +${GEM_LIBDIR}/ncurses_wrap.h +${GEM_LIBDIR}/panel_wrap.c +${GEM_LIBDIR}/panel_wrap.h +${GEM_HOME}/specifications/ncurses-${PKGVERSION}.gemspec +@dirrm ${GEM_LIBDIR}/lib +@dirrm ${GEM_LIBDIR}/examples +@dirrm ${GEM_LIBDIR} +@exec ${MKDIR} %D/${GEM_DOCDIR} diff --git a/devel/ruby-ncurses/files/gemspec b/devel/ruby-ncurses/files/gemspec new file mode 100644 index 00000000000..5e9bc3193c1 --- /dev/null +++ b/devel/ruby-ncurses/files/gemspec @@ -0,0 +1,25 @@ +require "rubygems" + +PLUGIN = "ncurses" +NAME = "ncurses" +VERSION = "1.1" +AUTHOR = "Tobias Peters" +EMAIL = "t-peters@users.berlios.de" +HOMEPAGE = "http://ncurses-ruby.berlios.de/" +SUMMARY = "This wrapper provides access to the functions, macros, global variables and constants of the ncurses library. These are mapped to a Ruby Module named \"Ncurses\": Functions and external variables are implemented as singleton functions of the Module Ncurses." + +spec = Gem::Specification.new do |s| + s.name = NAME + s.email = EMAIL + s.author = AUTHOR + s.version = VERSION + s.summary = SUMMARY + s.platform = Gem::Platform::RUBY + s.has_rdoc = false + s.homepage = HOMEPAGE + s.description = SUMMARY + s.autorequire = PLUGIN + s.require_paths = ["lib"] + s.files = Dir.glob("[A-Z]*") + Dir.glob("*.{c,h,rb}") + Dir.glob("{examples,lib}/**/*") + s.extensions = "extconf.rb" +end |