Commit Graph

209 Commits

Author SHA1 Message Date
Anna (cybertailor) Vyalkova
16dab572c8 nim-utils.eclass: "|| die"
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-20 14:33:36 +05:00
Anna (cybertailor) Vyalkova
dd644b2fb8 nim-utils.eclass: don't write NIMFLAGS to the config file
There are issues with strings containing spaces.

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-19 11:33:01 +05:00
Anna (cybertailor) Vyalkova
183aa05bdc nim-utils.eclass: link bug
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-19 11:07:06 +05:00
Anna (cybertailor) Vyalkova
d7803c78b4 nimble.eclass: use depfiles
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-19 10:57:46 +05:00
Anna (cybertailor) Vyalkova
5c6cf732a6 nim-utils.eclass: add ekoch helper
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-17 02:08:14 +05:00
Anna (cybertailor) Vyalkova
1f634424c7 nim-utils.eclass: beautify skipfile handling
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-16 18:44:08 +05:00
Anna (cybertailor) Vyalkova
329f81b552 nim-utils.eclass: beautify NOCOLOR stuff
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-16 18:44:08 +05:00
Anna (cybertailor) Vyalkova
79aaa2458e nim-utils.eclass: allow debug builds
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-16 18:44:08 +05:00
Anna (cybertailor) Vyalkova
96fbc7996e nim-utils.eclass: add NIMFLAGS example
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-16 18:44:07 +05:00
Anna (cybertailor) Vyalkova
b70ece6ec5 nim-utils.eclass: allow generating nim.cfg in custom dir
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-16 18:44:07 +05:00
Anna (cybertailor) Vyalkova
c27eb43e0a nim-utils.eclass: refine nim.cfg options
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-16 18:44:07 +05:00
Anna (cybertailor) Vyalkova
bf247008c6 R-packages.eclass: src_prepare is no-op now
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-13 07:29:22 +05:00
Anna (cybertailor) Vyalkova
6b49a5cb3c R-packages.eclass: src_install improvements
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-13 07:26:23 +05:00
Anna (cybertailor) Vyalkova
3a3c39c62b R-packages.eclass: use array in src_compile
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-13 07:14:43 +05:00
Anna (cybertailor) Vyalkova
0856cd9540 R-packages.eclass: create ${T}/R in src_configure
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-13 07:08:52 +05:00
Anna (cybertailor) Vyalkova
efa65ff5d8 R-packages.eclass: deprecate src_unpack
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-13 07:04:43 +05:00
Anna (cybertailor) Vyalkova
dddaef5cdd R-packages.eclass: name variables in _movelink
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-13 07:01:45 +05:00
Anna (cybertailor) Vyalkova
e98af0285b R-packages.eclass: document CRAN_SNAPSHOT_DATE
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-07-13 06:10:05 +05:00
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