Commit graph

48 commits

Author SHA1 Message Date
bacon
87edcb24b1 math/blas, math/lapack: Install interchangeable BLAS system
Install the new interchangeable BLAS system created by Thomas Orgis,
currently supporting Netlib BLAS/LAPACK, OpenBLAS, cblas, lapacke, and
Apple's Accelerate.framework.  This system allows the user to select any
BLAS implementation without modifying packages or using package options, by
setting PKGSRC_BLAS_TYPES in mk.conf. See mk/blas.buildlink3.mk for details.

This commit should not alter behavior of existing packages as the system
defaults to Netlib BLAS/LAPACK, which until now has been the only supported
implementation.

Details:

Add new mk/blas.buildlink3.mk for inclusion in dependent packages
Install compatible Netlib math/blas and math/lapack packages
Update math/blas and math/lapack MAINTAINER approved by adam@
OpenBLAS, cblas, and lapacke will follow in separate commits
Update direct dependents to use mk/blas.buildlink3.mk
Perform recursive revbump
2020-10-12 21:51:57 +00:00
brook
bae1f1e3df Select fields explicitly from df.depends in make.df.depends().
The function make.df.depends() constructs a dataframe for DEPENDS lines in
the updated Makefile.  That dataframe is combined with other dataframes for
different portions of the Makefile.  Consequently, all the dataframes must
have the same fields or combining with rbind() fails.  Previously, the
dataframe had the wrong set of fields; this explicitly selects the correct
set that matches the other dataframes so that they can all be combined
correctly.
2020-03-11 16:13:35 +00:00
brook
eaf33f2b50 Define RPKG, not rpkg, in the environment for R2pkg.R
When reading the environment, R2pkg.R expects RPKG to be the name of the
R package.  Fix the inadvertent use of lower case in the variable name.
2020-03-05 17:15:31 +00:00
brook
86f2f40e73 Add a hyphen (-) to each stored argument so recursive calls work.
In order for recursive calls of R2pkg to work, they must receive the same
set of arguments as the original.  Previous argument handling stripped the
hyphen (-) from each argument; this explicitly restores it.
2020-03-05 17:07:54 +00:00
rillig
148b74ff05 pkgtools/R2pkg: remove a left-over debug message 2020-01-13 18:09:20 +00:00
rillig
46412eabe9 pkgtools/R2pkg: update to 0.6.4
Changes since 0.6.3:

* Fix hardcoded use of bmake.
2020-01-13 18:06:47 +00:00
rillig
e21dca09cc pkgtools/R2pkg: format source code 2019-10-25 19:00:16 +00:00
rillig
941232a552 pkgtools/R2pkg: remove unused code 2019-10-19 22:10:58 +00:00
rillig
4aeb97616f pkgtools/R2pkg: refactoring 2019-10-19 21:32:02 +00:00
rillig
d5d380541c pkgtools/R2pkg: refactoring, tests 2019-10-19 21:12:18 +00:00
rillig
330530e02e pkgtools/R2pkg: make license handling code simpler 2019-10-19 19:10:31 +00:00
rillig
9f3bbc66d1 pkgtools/R2pkg: create fewer temporary files 2019-10-19 18:47:59 +00:00
rillig
e1a3e3d515 pkgtools/R2pkg: code cleanup, use fewer temporary files 2019-10-19 18:43:51 +00:00
rillig
7592d88865 pkgtools/R2pkg: make USE_LANGUAGES code simpler 2019-10-19 17:30:10 +00:00
rillig
5cb91c7b35 pkgtools/R2pkg: clean up shell program 2019-10-19 17:15:00 +00:00
rillig
80b0ad0df6 pkgtools/R2pkg: clean up shell program 2019-10-19 16:18:55 +00:00
rillig
592516565b pkgtools/R2pkg: update to 0.6.3
Changes since 0.6.1:

* Fix comparison of articles (a, an) in comments.
2019-10-19 15:47:03 +00:00
rillig
7cbd7fcc3d pkgtools/R2pkg: refactoring, tests 2019-10-19 14:52:40 +00:00
rillig
d74b3e43fa pkgtools/R2pkg: code cleanup 2019-10-19 13:55:09 +00:00
rillig
1a6da8e03d pkgtools/R2pkg: refactoring, tests 2019-10-19 13:37:00 +00:00
rillig
5b63090125 pkgtools/R2pkg: refactoring, tests 2019-10-19 11:47:23 +00:00
rillig
45180f7fb3 pkgtools/R2pkg: refactoring, tests 2019-10-19 11:04:46 +00:00
rillig
c3eb38efc4 pkgtools/R2pkg: make write.Makefile simpler 2019-10-18 22:10:46 +00:00
rillig
b36cbe9825 pkgtools/R2pkg: refactorings, tests 2019-10-18 21:42:20 +00:00
rillig
18e20d3517 pkgtools/R2pkg: remove unused code, add tests 2019-10-18 17:18:03 +00:00
rillig
05380acf01 pkgtools/R2pkg: fix tests with virtual files
textConnection does not expect a trailing '\n' in its argument.
2019-10-18 16:07:53 +00:00
rillig
e4c54a6929 pkgtools/R2pkg: add more tests 2019-10-17 22:08:13 +00:00
rillig
8583a0f1ac pkgtools/R2pkg: add tests 2019-10-17 17:50:54 +00:00
rillig
c8408e31df pkgtools/R2pkg: refactorings, small bugfixes, tests
find.Rcpp is now guaranteed to return a boolean.

Added some tests and many more templates that are still waiting to be
filled.
2019-10-17 17:14:34 +00:00
rillig
48ac9a62c8 pkgtools/R2pkg: fix indentation, make tabs visible 2019-10-17 01:21:12 +00:00
rillig
9c614d3f09 pkgtools/R2pkg: remove unused code 2019-10-15 18:44:21 +00:00
rillig
d9d373311f pkgtools/R2pkg: shorten code in read.Makefile.as.dataframe 2019-10-13 19:34:13 +00:00
rillig
a88f3e92b6 pkgtools/R2pkg: add more unit tests 2019-10-13 19:13:47 +00:00
rillig
5540d90513 pkgtools/R2pkg: add unit tests 2019-10-13 18:13:03 +00:00
rillig
9fe8d9ca3a pkgtools/R2pkg: code cleanup 2019-10-13 17:23:29 +00:00
rillig
5154306621 pkgtools/R2pkg: replace integer indices with named attributes 2019-10-13 17:20:00 +00:00
rillig
f63450b9c1 pkgtools/R2pkg: make R2pkg.R testable
Placing the code into a main function allows the tests to source the file
without any side effects.

The LC_ALL=C environment variable is necessary on NetBSD/x86_64 8.0 in
the en_US.UTF-8 locale since otherwise R dumps core in the source(...)
call, deep inside towctrans.
2019-10-13 15:35:48 +00:00
rillig
95d5be1715 pkgtools/R2pkg: fix typo 2019-10-13 13:28:45 +00:00
rillig
c158cfcbc6 pkgtools/R2pkg: separate R code from shell code
Before, it was difficult to edit the R code since all dollars,
backslashes and backticks had to be escaped. Separating the code also
makes the R part testable on its own.
2019-10-13 13:26:22 +00:00
rillig
9d7f6112a0 pkgtools/R2pkg: update to 0.6.1
Changes since 0.6:

* Run properly even if TMPDIR is not set.

* Quote variables to prevent unintended interpolation.

* Write error messages to stderr instead of stdout.
2019-10-13 09:43:26 +00:00
brook
b0f27a7a6a Update to version 0.6.
Changes since version 0.5:

* Improve the canonical format of an R package Makefile:

  - Place R_PKGNAME, R_PKGVER, and CATEGORIES in the first stanza.
  - Simplify CATEGORIES by defining common ones in Makefile.extension.
  - Use the default value of HOMEPAGE defined in Makefile.extension.

* Annotate generated comments with [R2pkg] to make them easier to find.
2019-08-08 20:14:26 +00:00
brook
93044fb2ef R2pkg: update to version 0.5. 2019-08-01 13:11:08 +00:00
brook
8f84ed939f R2pkg: update to 0.4.
Changes since 0.3:
* Fix recursion.
* Add both c and c++ to USE_LANGUAGES.
* Add maintainer email handling (-M).
* Use buildlink3.mk files for dependencies when available.
2019-06-24 13:46:04 +00:00
jperkin
d14efc79ff R2pkg: Add missing RCSID. 2018-01-13 09:10:33 +00:00
wiz
ec863c4125 Sort options. Minor other fixes. 2017-07-18 18:44:06 +00:00
wiz
6e2c760df4 New sentence, new line.
Sort sections.
Remove trailing whitespace.
Fix Dt argument
2017-07-18 18:41:23 +00:00
brook
b29d11c7fa Update to v0.3.
- Add recursive handling of dependencies.
- Simplify updating pre-existing R packages.
- Improve handling of packages that conflict with base R packages.
2017-07-18 17:24:31 +00:00
brook
d6d65acf47 Initial import of the R2pkg package:
The R2pkg program, which is modeled after url2pkg, creates a new
  pkgsrc package for the corresponding R package.  It is intended to
  help pkgsrc developers create new R packages quickly and easily.

This package was discussed in a thread beginning with the following:
http://mail-index.netbsd.org/tech-pkg/2015/02/04/msg014227.html
2015-04-25 22:06:34 +00:00