summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* strip-linguas.eclass: New eclass, split off from l10nUlrich Müller2021-06-261-3/+3
| | | | | | | | Originally strip-linguas() was part of eutils.eclass. It was moved to l10n.eclass in late 2020, but there are few (if any) ebuilds using strip-linguas and the other functions from l10n. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eutils.eclass: Minor touchups of EAPI conditionalsUlrich Müller2021-06-261-6/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eutils.eclass: Update message in EAPI guardUlrich Müller2021-06-211-1/+1
| | | | | | A message like "eutils is banned in EAPI 4" may be confusing. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eutils.eclass: update die message for EAPI 0Sam James2021-06-211-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* eutils.eclass: [QA] drop < EAPI 5Sam James2021-06-201-24/+6
| | | | | Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
* eclass: [QA] Revert multiple meaningless doc changesMichał Górny2020-12-281-9/+0
| | | | | | | | | | | Revert multiple meaningless eclass documentation changes, notably adding a lot of placeholders and documenting implementation details. These changes were aimed at silencing (valid) documentation warnings without actually providing valuable documentation to the end users. While some of these changes were beneficial, it would take a lot of effort to review them all and the author is unwilling to fix his mistakes. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/eutils: fixup documentationAaron Bauman2020-12-161-0/+9
| | | | Signed-off-by: Aaron Bauman <bman@gentoo.org>
* eutils.eclass: Add a global deprecation warning.Ulrich Müller2020-09-121-0/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eutils.eclass: Deprecate use_if_iuse().Ulrich Müller2020-09-121-0/+3
| | | | | | | | The function is not called from any ebuilds in the gentoo repository. Inline it as "in_iuse foo && use foo" in other eclasses, or define it as a local function when it is called multiple times. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eutils.eclass: Deprecate emktemp().Ulrich Müller2020-09-121-2/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* l10n.eclass: strip-linguas() moved from eutils to here.Ulrich Müller2020-09-121-51/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* wrapper.eclass: New eclass, split off from eutils.Ulrich Müller2020-09-121-49/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* edos2unix.eclass: New eclass, split off from eutils.Ulrich Müller2020-09-121-15/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eutils.eclass: Specify supported EAPIs.Ulrich Müller2020-09-121-4/+7
| | | | | | Proactively deprecate in future EAPIs, as requested by soap. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eutils.eclass: Remove optfeature()David Seifert2020-09-121-46/+1
| | | | | | | | * optfeature() is now defined in optfeature.eclass since e9caee95d9c7ec69a8b8a12be2ae9bcd98c46e2d. Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eutils.eclass: Drop epause() and ebeep().Ulrich Müller2019-11-261-48/+1
| | | | | | No ebuilds calling these functions in EAPIs 0 to 2 are left in the tree. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eutils.eclass: Ban path_existsMichał Górny2018-08-151-26/+4
| | | | Closes: https://github.com/gentoo/gentoo/pull/9517
* eutils.eclass: Disable eqawarn in EAPI 7.Ulrich Müller2018-08-151-13/+19
| | | | | The eqawarn command is part of EAPI 7, therefore the eclass should not override it. Also we cannot rely on its being a shell function.
* eutils.eclass: make_wrapper, fix 'cd' error handlingMichał Górny2018-07-161-1/+1
| | | | | Reorder the generated wrapper, and add '&&' after the 'cd' call so that the wrapper will not try to execute the program if 'cd' command fails.
* eutils.eclass: Sanitize exeoptsMichał Górny2018-06-131-0/+1
| | | | | Sanitize exeopts when calling newexe, in order to avoid prior insopts calls accidentally affecting make_wrapper.
* vcs-clean.eclass: Split off clean helpers from eutils.eclass.Ulrich Müller2018-03-021-32/+2
| | | | | | | | Split off functions ecvs_clean, esvn_clean, and egit_clean into a dedicated vcs-clean.eclass. No code changes. For backwards compatibility, eutils inherits the new eclass in existing EAPIs.
* eutils.eclass: More reliable return status for e*_clean functions.Ulrich Müller2018-03-021-4/+4
| | | | | | | | In ecvs_clean, combine the two find commands into one, so that the exit status of the first one won't be ignored. Also use find -exec rather then find | xargs, so we don't have to check the exit status of all commands in the pipeline.
* eutils.eclass: Update function documentation.Ulrich Müller2018-01-291-7/+10
| | | | | | | Mention that einstalldocs() and in_iuse() are provided by the package manager in EAPI 6. in_iuse "must not" (rather than "should not") be used in global scope.
* eutils.eclass: Remove built_with_use().Ulrich Müller2018-01-291-92/+0
| | | | | | | The function was deprecated in 2010 and is no longer used in the tree. Use EAPI 2 use deps and has_version as replacement. Closes: https://bugs.gentoo.org/261562
* eutils.eclass: Inline remaining uses of _eutils_eprefix_init.Ulrich Müller2018-01-091-10/+2
| | | | | Inline the remaining two uses of the function. This shortens the code, and also allows to declare the variables as local.
* preserve-libs.eclass: Split off preserve_old_lib from eutils.Ulrich Müller2018-01-091-63/+2
| | | | | | | | | | | Split off functions preserve_old_lib and preserve_old_lib_notify from eutils.eclass into a dedicated preserve-libs.eclass. These functions are rarely used and are independent of the rest of eutils, therefore moving them into their own eclass will help clarifying eclass inheritance in ebuilds. For backwards compatibility, eutils inherits the new eclass in existing EAPIs.
* desktop.eclass: Split off desktop, menu, and icon functions from eutils.Ulrich Müller2017-11-301-392/+9
| | | | | | | | | | | Split off functions make_desktop_entry, make_session_desktop, domenu, newmenu, doicon, and newicon from eutils.eclass into a dedicated desktop.eclass. These functions are independent of the rest of eutils, therefore moving them into their own eclass will help clarifying eclass inheritance in ebuilds. For backwards compatibility, eutils inherits the new eclass in existing EAPIs.
* eutils.eclass: Remove validate_desktop_entries function.Ulrich Müller2017-11-301-30/+0
| | | | | This function is no longer used in the tree. It was deprecated more than 8 months ago in commit 650a1ebe8f63d3750908142e2117b24a8efc9403.
* eutils.eclass: Remove check_license function.Ulrich Müller2017-11-301-4/+0
| | | | This is an inoperative stub since 2011, and no longer used in the tree.
* eutils.eclass: Document optfeature suggests packages not installed.Chris Mayo2017-09-301-2/+2
| | | | Acked-by: Michał Górny <mgorny@gentoo.org>
* eutils.eclass: Remove implicit epunt-cxx inheritMichał Górny2017-04-251-2/+1
| | | | | | Stop inheriting the epunt-cxx eclass in eutils implicitly. All the uses in ::gentoo are fixed already, and this lets us add extra dependencies in the eclass without affecting most of the packages out there.
* eutils.eclass: make_desktop_entry, replace unnecessary extglobMichał Górny2017-04-251-3/+1
| | | | | | | | Replace the unnecessary use of extglob to strip file suffix in make_desktop_entry with a plain ${x%.*}. This is pretty much equivalent since match to one of the pre-defined suffixes is already confirmed via the preceding conditional, and avoiding repeating the suffix list twice makes the code simpler.
* epunt-cxx.eclass: Split C++ check punting code out of eutilsMichał Górny2017-03-241-42/+2
| | | | | | | | | Split the epunt_cxx (plus internal code) to a dedicated eclass. This is rarely needed, usually indicates a dead upstream and requires the ELT-patches framework. The patches are going to be split to a separate package, and the new eclass will therefore need to DEPEND on it. We do not want the dependency to apply to all eutils users though.
* ltprune.eclass: Split prune_libtool_files out of eutilsMichał Górny2017-03-181-149/+1
| | | | | | | | | | | | | Move the prune_libtool_files into a dedicated ltprune.eclass. The function is quite complex and depends on toolchain-funcs. It has a separate maintainer, is not useful to non-autotools ebuilds, and even there it is frequently replaced by the simpler 'find ... -delete' call. The new eclass is implicitly inherited by eutils in EAPI 6 and older in order to preserve compatibility with existing ebuilds. However, all ebuilds should switch to inheriting it directly. The split has been suggested by Ulrich Müller.
* eutils.eclass: prune_libtool_files, make .pc subst errors fatalMichał Górny2017-03-181-3/+4
| | | | | Make the substitution errors in prune_libtool_files logic fatal to avoid the dependency of eqawarn. They're extremely unlikely to happen anyway.
* eutils.eclass: prune_libtool_files, punt pointless Prefix logicMichał Górny2017-03-181-2/+1
| | | | | | | | Remove the unnecessary Prefix logic from prune_libtool_files(). There is no functional difference between starting a find in ${D} and ${ED} (since ${D} is not supposed to contain other directories on a Prefix system), and using the latter implies unnecessary hackery for older EAPIs.
* eutils.eclass: Kill multilib inherit for EAPI 7Michał Górny2017-03-181-2/+2
| | | | | | | The multilib.eclass seems not to be used by any eutils function. Therefore, disable the inherit for EAPI 7. It is being preserved for older EAPIs not to break ebuilds inheriting this eclass and using multilib.eclass functions implicitly.
* epatch.eclass: Split epatch* logic from eutilsMichał Górny2017-03-181-439/+1
| | | | | | | | | | | | | | Move epatch and epatch_user (along with the descriptions for all their variables) into a dedicated epatch.eclass. This function is very complex, therefore it benefits from separate eclass and a dedicated maintainer. Furthermore, it is mostly obsoleted by eapply* in EAPI 6. The new eclass is implicitly inherited by eutils to preserve compatibility. However, the inherit will be removed in EAPI 7, and the ebuilds should switch to inheriting epatch directly or using eapply*. Thanks to Ulrich Müller for doing the necessary research.
* estack.eclass: Split estack* logic from eutilsMichał Górny2017-03-181-203/+7
| | | | | | | | | | | | | Split the estack_* and related functions from eutils into a dedicated estack.eclass. Those functions have significant complexity and are not used frequently, therefore they benefit from having a separate file and an explicit dedicated maintainer. The new eclass is implicitly inherited by eutils to preserve compatibility. However, the inherit will be removed in EAPI 7, and the ebuilds should switch to using estack directly. Thanks to Ulrich Müller for doing the research on this.
* eutils.eclass: Deprecate validate_desktop_entriesMichał Górny2017-03-181-1/+4
| | | | | | The validate_desktop_entries function is redundant to the built-in .desktop file checks done by Portage directly. It is used in total by two packages for both of which bugs have been filed.
* Drop $Id$ per council decision in bug #611234.Robin H. Johnson2017-02-281-1/+0
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* eutils.eclass: Remove retired co-maintMichał Górny2017-02-221-2/+0
|
* eutils.eclass: move EAPI conditional funcs under the multiple inclusion ↵Mike Frysinger2017-01-201-2/+2
| | | | protection check
* eutils.eclass: add 512 icon size to doicon documentationChris Mayo2017-01-071-1/+1
| | | | Closes: https://github.com/gentoo/gentoo/pull/3298
* eutils.eclass: Show death notice only when user patches were really appliedThomas Deutschmann2016-08-311-1/+7
| | | | | | | | | | | | | | | | | As part of the user requested feature from [Gentoo-Bug #543878] eutils.eclass shows a warning regarding user applied patches in case of an error [Link 1]. However this warning will always be shown even if no user patch were applied at all (example: empty /etc/portage/<cat>/<pkg> directory). This commit adds a new global variable "EPATCH_N_APPLIED_PATCHES" which tracks the number of applied user patches. This allows us to only show the notice when user patches were really applied. Link: https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/eutils.eclass?r1=1.443&r2=1.444 Gentoo-Bug: https://bugs.gentoo.org/543878
* HTTPS for *.freedesktop.orgAnthony Ryan2016-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * Excluding xorg.freedesktop.org * Excluding tango.freedesktop.org The following modified ebuilds were found to have problems after modification but the problems were determined to not be a regression. Upstream tarball has a new hash: * app-misc/evtest-1.29 * app-misc/evtest-1.30 * dev-embedded/scratchbox2-2.0-r1 * dev-ml/cairo-ocaml-1.2.0 * net-libs/libqmi-1.0.0 * sys-auth/libfprint-0.4.0 * sys-auth/libfprint-0.5.0 * sys-auth/libfprint-0.5.1 Upstream tarball has been deleted: * dev-libs/liblazy-0.2 * dev-util/pkgconfig-openbsd-20130507-r1 * x11-libs/xvba-video-0.8.0-r3 * x11-misc/driconf-0.9.1-r1 * x11-misc/xdg-utils-1.1.0_rc2-r1
* eclass/eutils.eclass: epatch_user: Strip subslot when taking patches from ↵Alexis Ballier2016-02-171-1/+1
| | | | | | /etc/portage/patches/$CAT/$PN:$SLOT. Bug #574966. This makes it similar to what portage does with eapply_user.
* eutils.eclass: e{cvs,svn,git}_clean: make empty arg testing more correctMike Frysinger2016-01-291-3/+3
| | | | | -z $* tests whether any args are non-empty, not whether any where specified. Check $# instead for accurate results.
* eutils.eclass: Add egit_clean()Justin Lecher2016-01-221-0/+10
| | | | Signed-off-by: Justin Lecher <jlec@gentoo.org>
* eutils.eclass: estack_pop: quote unset argument for bug 571318Zac Medico2016-01-201-1/+1
|