Commit Graph

91 Commits

Author SHA1 Message Date
Anna (cybertailor) Vyalkova
4db1815c13 R-packages.eclass: document CRAN_PN
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-13 06:01:41 +05:00
Anna (cybertailor) Vyalkova
0f61fe1fa5 R-packages.eclass: document CRAN_PV
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-13 06:00:16 +05:00
Anna (cybertailor) Vyalkova
8ece3a840b R-packages.eclass: EAPI 8 support
Add inherit guard.

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-13 05:58:36 +05:00
Anna (cybertailor) Vyalkova
241e405c26 R-packages.eclass: simplify pkg_postinst
optfeature already checks whether a package has been installed.

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-13 05:58:36 +05:00
Robert Greener
e21f5c3ad3 eclass/R-packages: Add Robert Greener (myself) as author
Signed-off-by: Robert Greener <me@r0bert.dev>
2022-07-12 13:05:31 +01:00
Robert Greener
4d1f8fd683 eclass/R-packages: Add CRAN_SNAPSHOT_DATE and use MRAN.
The current SRC_URI searches all the CRAN mirrors for
/src/contrib/${PN}_${PV}.tar.gz. This is problematic. Once a package is updated
on CRAN, the package is removed from this path and moved to
/src/contrib/Archive/${PN}/${PN}_${PV}.tar.gz. The effect of this is
that once a package goes out-of-date on CRAN, the ebuild will no longer
build. This significantly increases the maintenance burden of dev-R/*
packages, as it requires that they be up-to-date at all times.

The proposal here, is to use the snapshots of CRAN provided by
Microsoft. This requires an additional variable set in the ebuilds, the
update date. This can just be set to the date that the ebuild is
updated. By setting this, out of date packages will continue to build.

Signed-off-by: Robert Greener <me@r0bert.dev>
2022-07-12 13:05:31 +01:00
Robert Greener
6325628209 eclass/R-packages: Add CRAN_PN variable
This can be overridden in the ebuilds, but if its not defined it is the
package name with _ substituted with periods. This maintains the
existing behaviour.

Signed-off-by: Robert Greener <me@r0bert.dev>
2022-07-12 13:05:31 +01:00
Robert Greener
5c61b9e355 eclass/R-packages: Add CRAN_PV
Add a variable CRAN_PV which defaults to PV, but can be overridden in
the ebuild. This is useful for the case where the version number is
something like "1.2-24" as it often is with R packages, this would mean
that a variable like "CRAN_PV=$(ver_rs 2 -)" could be defined in the
ebuild, which is used in the SRC_URI of the eclass. If CRAN_PV isn't
defined, it just defaults to PV.

Signed-off-by: Robert Greener <me@r0bert.dev>
2022-07-12 13:05:31 +01:00
Anna (cybertailor) Vyalkova
88cc11da55 boinc-app.eclass: add acct-user deps
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-10 08:36:07 +05:00
Anna (cybertailor) Vyalkova
0a28bb6056 nimble.eclass: fixup for blank package URL
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-06 01:08:56 +05:00
Anna (cybertailor) Vyalkova
e37134486b nim-utils.eclass: create testament skipfile once
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-06 01:02:20 +05:00
Anna (cybertailor) Vyalkova
fc290a76fe qbs.eclass: use raw-ldflags from flag-o-matic
* use meson-format-array instead of bash function
* move EXPORT_FUNCTIONS at the end of file

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-06 01:02:19 +05:00
Anna (cybertailor) Vyalkova
9228cc58d0 nimble.eclass: drop edo
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-06-30 11:00:04 +05:00
Anna (cybertailor) Vyalkova
c4c4ee8ac8 nimble.eclass: add nimble_comment_requires
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-06-30 11:00:03 +05:00
Anna (cybertailor) Vyalkova
b7324e1773 nimble.eclass: force ninja
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-06-30 11:00:02 +05:00
Anna (cybertailor) Vyalkova
56b12ae84d eclass/nimble.eclass: new eclass
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-06-29 16:52:32 +05:00
Anna (cybertailor) Vyalkova
d34b616bfc eclass/nim-utils.eclass: new eclass
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-06-29 16:52:26 +05:00
Alessandro Barbieri
1a5c418638 cannadic.eclass: add cannadic eclass
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-06-26 04:29:44 +02:00
Anna (cybertailor) Vyalkova
4edaff1836 boinc-app.eclass: set owner to root
Don't let BOINC client remove our files.

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-06-26 00:40:35 +05:00
Anna (cybertailor) Vyalkova
47f2165f2a boinc.eclass: use edo eclass
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-06-25 22:42:16 +05:00
Anna (cybertailor) Vyalkova
598d011fca boinc-app.eclass: fix paths and permissions
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-06-25 22:42:15 +05:00
Alessandro Barbieri
41174ff126 R-packages.eclass: only suggest packages on non binary merge
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-06-16 00:40:41 +02:00
Alessandro Barbieri
390cdd54fa octaveforge.eclass: remove octave detection
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-06-14 11:10:58 +02:00
Alessandro Barbieri
8dc69248dc octaveforge.eclass: remove unneeded edo
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-06-14 10:00:25 +02:00
Alessandro Barbieri
0a8c734ce0 R-packages.eclass: remove unneeded edo
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-06-14 10:00:25 +02:00
Anna (cybertailor) Vyalkova
3358a8f78e build2.eclass: new eclass
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-06-07 11:26:03 +05:00
Alessandro Barbieri
f16ca432c7 R-packages.eclass: use edo for all the commands
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-06-02 03:23:29 +02:00
Alessandro Barbieri
f005022931 octaveforge.eclass: use edo for all commands
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-06-02 03:23:29 +02:00
Nicola Smaniotto
9c439330e6 mpv-plugin.eclass: recursive doins
Some plugins, like mpv_sponsorblock, install a folder

Signed-off-by: Nicola Smaniotto <smaniotto.nicola@gmail.com>
2022-05-31 15:13:21 +02:00
Alessandro Barbieri
9b26012dff octaveforge.eclass: patch before moving things
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-05-28 23:19:44 +02:00
Alessandro Barbieri
54b1cba8d1 octaveforge.eclass: replace eapply_user with default
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-05-24 19:36:35 +02:00
Alessandro Barbieri
5778e18ce8 octaveforge.eclass: add octaveforge_src_test()
Closes: https://bugs.gentoo.org/843536
Closes: https://bugs.gentoo.org/843521
Closes: https://bugs.gentoo.org/843518
Closes: https://bugs.gentoo.org/843515
Closes: https://bugs.gentoo.org/843512
Closes: https://bugs.gentoo.org/843509
Closes: https://bugs.gentoo.org/843503
Closes: https://bugs.gentoo.org/843500
Closes: https://bugs.gentoo.org/843497

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-05-11 13:29:17 +02:00
Alessandro Barbieri
95b8598899 octaveforge.eclass: fix some issues while moving in folders
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-05-08 03:58:08 +02:00
Alessandro Barbieri
1ff3993d8f octaveforge.eclass: inline configure, eautoreconf
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-05-07 09:22:50 +02:00
Alessandro Barbieri
5259d23ea8 octaveforge.eclass: add missing --no-gui, --eval
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-05-07 04:11:22 +02:00
Alessandro Barbieri
77c09ccb1a octaveforge.eclass: remove 'all' target from emake
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-05-07 04:11:21 +02:00
Alessandro Barbieri
2a6aba0363 octaveforge.eclass: export LDFLAGS
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-05-07 04:11:21 +02:00
Alessandro Barbieri
e511f5d656 octaveforge.eclass: use PN instead of OCT_PKG
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-05-07 02:48:07 +02:00
Alessandro Barbieri
ed21e2c5c9 octaveforge.eclass: query datadir
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-05-07 01:44:10 +02:00
Alessandro Barbieri
c54bb93fd5 octaveforge.eclass: install arch dependent files in libdir
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-05-06 18:25:31 +02:00
Alessandro Barbieri
14617d41ad octaveforge.eclass: move octaveforge makefile logic into the eclass
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-05-05 09:32:17 +02:00
Alessandro Barbieri
f16593b366 octaveforge.eclass: use bash style tests
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-05-05 09:32:17 +02:00
Alessandro Barbieri
450bc33de3 R-packages.eclass: use bash style tests
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-05-05 09:32:17 +02:00
Nicola Smaniotto
2e47c02ef7 mpv-plugin.eclass: handle multi-file scripts
The eclass behaves differently if a "main" file is present, since mpv
should only execute that one.

Also fix indentation to use tabs only.

Signed-off-by: Nicola Smaniotto <smaniotto.nicola@gmail.com>
2022-04-24 18:46:46 +02:00
Alessandro Barbieri
24e92498a7 R-packages.eclass: also remove tests
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-04-19 20:31:28 +02:00
Alessandro Barbieri
47cf61d513 R-packages.eclass: do not compress docs, build in T
Closes: https://bugs.gentoo.org/838832
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-04-16 18:20:07 +02:00
Alessandro Barbieri
b2710c1d1c octaveforge.eclass: add documentation comments
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-04-15 22:34:21 +02:00
Alessandro Barbieri
4ec6a5d705 R-packages.eclass: add documentation comments
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-04-15 22:34:21 +02:00
Nicola Smaniotto
ce3b957642 mpv-plugin.eclass: new eclass
Signed-off-by: Nicola Smaniotto <smaniotto.nicola@gmail.com>
2022-04-14 11:26:30 +02:00
Anna (cybertailor) Vyalkova
3931b905b4 boinc.eclass: fix inherit guard usage
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-04-11 14:40:03 +05:00