pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
mruby: add an install target, the package is now functional.
Module Name: pkgsrc-wip
Committed By: Frederic Cambus <fred%statdns.com@localhost>
Pushed By: fcambus
Date: Thu Sep 12 15:49:50 2019 +0200
Changeset: 253c1871ef8e67f1d86ebb20abd4c120016c1c64
Modified Files:
mruby/Makefile
mruby/PLIST
Removed Files:
mruby/TODO
Log Message:
mruby: add an install target, the package is now functional.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=253c1871ef8e67f1d86ebb20abd4c120016c1c64
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
mruby/Makefile | 11 ++++++++++-
mruby/PLIST | 40 ++++++++++++++++++++++++++++++++++++++++
mruby/TODO | 1 -
3 files changed, 50 insertions(+), 2 deletions(-)
diffs:
diff --git a/mruby/Makefile b/mruby/Makefile
index be5c1d49d8..5a6f1b6e04 100644
--- a/mruby/Makefile
+++ b/mruby/Makefile
@@ -10,15 +10,24 @@ COMMENT= Lightweight implementation of the Ruby language
LICENSE= mit
USE_LANGUAGES= c c++
-USE_TOOLS+= bison
+USE_TOOLS+= bison pax
DEPENDS+= ${RUBY_BASE}>=${RUBY_VERSION}:${RUBY_SRCDIR}
REPLACE_RUBY= minirake
+DOCDIR= share/doc/mruby
+
+INSTALLATION_DIRS+= bin ${DOCDIR}
+
do-build:
cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} ./minirake --verbose
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${DESTDIR}${PREFIX}/bin
+ cd ${WRKSRC}/include && ${PAX} -wr * ${DESTDIR}${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/doc/guides/* ${DESTDIR}${PREFIX}/${DOCDIR}
+
.include "../../lang/ruby/replace.mk"
.include "../../lang/ruby/rubyversion.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/mruby/PLIST b/mruby/PLIST
index 48d96a5493..625f3de983 100644
--- a/mruby/PLIST
+++ b/mruby/PLIST
@@ -1 +1,41 @@
@comment $NetBSD$
+bin/mirb
+bin/mrbc
+bin/mrdb
+bin/mruby
+bin/mruby-strip
+include/mrbconf.h
+include/mruby.h
+include/mruby/array.h
+include/mruby/boxing_nan.h
+include/mruby/boxing_no.h
+include/mruby/boxing_word.h
+include/mruby/class.h
+include/mruby/common.h
+include/mruby/compile.h
+include/mruby/data.h
+include/mruby/debug.h
+include/mruby/dump.h
+include/mruby/error.h
+include/mruby/gc.h
+include/mruby/hash.h
+include/mruby/irep.h
+include/mruby/istruct.h
+include/mruby/khash.h
+include/mruby/numeric.h
+include/mruby/object.h
+include/mruby/opcode.h
+include/mruby/ops.h
+include/mruby/proc.h
+include/mruby/range.h
+include/mruby/re.h
+include/mruby/string.h
+include/mruby/throw.h
+include/mruby/value.h
+include/mruby/variable.h
+include/mruby/version.h
+share/doc/mruby/compile.md
+share/doc/mruby/debugger.md
+share/doc/mruby/gc-arena-howto.md
+share/doc/mruby/mrbconf.md
+share/doc/mruby/mrbgems.md
diff --git a/mruby/TODO b/mruby/TODO
deleted file mode 100644
index 6538ff1624..0000000000
--- a/mruby/TODO
+++ /dev/null
@@ -1 +0,0 @@
-- Add an install target, or use the Rakefile install target?
Home |
Main Index |
Thread Index |
Old Index