unity-extra/ehooks
Ebuild hooks patching system
-
ehooks-21.04-r1~amd64 ~x86+audacity_menu +copyq_theme +eog_menu +evince_menu +fontconfig_adjust +gnome-screenshot_adjust +gnome-terminal_theme +headerbar_adjust +libreoffice_theme +nemo_noroot +pidgin_chat +telegram_theme +totem_menu +zim_theme
View Download Browse License: GPL-2+Overlay: unity-gentoo
ChangeLog
commit e7c8af4ae8d8d0ddb74f0bdf41a298b52ce62b77
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Tue Jul 19 09:22:30 2022 +0930
Stabilise Jammy and drop Hirsute
commit 2e1c9b10301cf75bc40d704901ef24532f8fcd4d
Author: c4pp4 <c4pp4@seznam.cz>
Date: Sun Sep 5 15:06:24 2021 +0200
unity-extra/ehooks - adjust USE flags according to =media-libs/freetype-2.11.0
commit 18d70477a985b8f80ed085491a1bf77d0bb4bcd9
Author: c4pp4 <c4pp4@seznam.cz>
Date: Mon Jun 28 00:39:44 2021 +0200
unity-extra/ehooks - detect profile via ubuntu-versionator
commit f91a0d158d6086db3e3a78457c6c7e51541423f3
Author: c4pp4 <c4pp4@seznam.cz>
Date: Sun Jun 27 14:24:08 2021 +0200
Update PYTHON_COMPAT, EAPI and versioning
commit 9913323f46bcf2c0cf0f170c29148d6638c2e6fb
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Jun 18 03:25:34 2021 +0200
Stabilise Hirsute and drop Groovy
commit 2b0be7c0044dad20dd428474324fca3f77732013
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Wed Jan 27 16:03:31 2021 +1030
Stabilise Groovy and drop Focal
commit b4bda9373c3d41b5db17be8e01cdb9acac679530
Author: c4pp4 <c4pp4@seznam.cz>
Date: Sat Sep 19 03:48:48 2020 +0200
[ehooks] x11-apps/copyq - use ubuntu-mono-dark tray icon color
commit f35522eb66a1eaae5cf619a1f56767e9c7a25e61
Author: c4pp4 <c4pp4@seznam.cz>
Date: Sat Sep 5 04:35:53 2020 +0200
[ehooks] net-im/telegram-desktop - add ubuntu-mono-dark tray icons and disable tray counter
commit 5e5b783321288ee654652208ceca26385f203b89
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Jul 17 11:31:32 2020 +0200
Use REPO_ROOT variable name (cosmetic changes)
commit 6503c08f5061d188250dcbca8c187e8e7edd6b66
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Jul 10 22:25:21 2020 +0200
[ehooks] Move ehooks from 'profiles/releases/$/ehooks' to 'profiles/ehooks'
commit 5fb1a8ac557df4d37f8fefe6da8ab4bad2cd8d0d
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Sat Jan 11 09:15:54 2020 +1030
Update Copyright headers
commit a8c174ac399a285e13ee336f91e81aaf8b9e5de8
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Mon Dec 16 23:26:24 2019 +1030
Stabilise Disco and drop Cosmic
commit 82553d5748fafd6b91e14ed9cddb247205180a12
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Dec 6 06:44:34 2019 +0100
[ehooks] add fontconfig_adjust USE flag
commit 700c6945c474fc2dd145e3794af16c11eff96376
Author: c4pp4 <c4pp4@seznam.cz>
Date: Mon Sep 9 18:26:25 2019 +0200
[ehooks] provide a way for users to apply their own ebuild hooks (see README_ehooks.txt)
commit 8fce2c214dcb11f08caf962ab234eead74bddb3c
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu Aug 15 16:48:35 2019 +0200
[ehooks] improve checking
commit 83cfbaafaa591486e9fb22412606b9aaaa73cb2b
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Jul 12 05:48:26 2019 +0200
[ehooks] tweaks
commit 0e0be57dfc49c9301df6c42aa27d71d012ab7b1e
Author: c4pp4 <c4pp4@seznam.cz>
Date: Tue Jul 9 21:19:28 2019 +0200
[ehooks] fix looking for installed packages
commit 9ff3b25d5defa13eb57266902f8dba5a02f8ec30
Author: c4pp4 <c4pp4@seznam.cz>
Date: Tue Jul 9 06:52:00 2019 +0200
[ehooks] see README_ebuild_hooks.txt for changes
commit 85dfa8a0f4ae8d81d94212d1630b2f2390c61a88
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu May 30 02:40:01 2019 +0200
unity-extra/ehooks - LibreOffice - make Tango as the fallback for Human icon theme
commit c6b900b53e089dee2afcbbd91e6988e1a706869e
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Sat May 4 22:24:35 2019 +0930
Update Copyright headers
commit 4f3ad9a67c3ecc450b73d5cfd6bf71091e7b32b8
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Mar 29 20:24:04 2019 +0100
unity-extra/ehooks - fix totem and add translations for eog and totem
commit ddcd7a05f20b471f86cb3b704d05bef59366d47b
Author: c4pp4 <c4pp4@seznam.cz>
Date: Wed Mar 27 17:18:26 2019 +0100
unity-extra/ehooks - fix evince traditional menubar (Help, About, Save a Copy) and add translations from artful
commit 51a4372f639e2f14a5dab6d91e202050c3360a4b
Author: c4pp4 <c4pp4@seznam.cz>
Date: Wed Mar 27 00:27:43 2019 +0100
Tidy ehooks
commit 1e2ac24889671b469a5a3a2b3a03ec397b110d38
Author: c4pp4 <c4pp4@seznam.cz>
Date: Tue Mar 26 04:51:49 2019 +0100
unity-extra/ehooks - fix gnome-terminal
commit 8235573e81f948e28d933dd08d04f508b6ea22f6
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Wed Mar 20 07:03:53 2019 +1030
Version bump for www-client/chromium
commit 642c3e7afb53d4e12d1681caff88b44dc717ac67
Author: c4pp4 <c4pp4@seznam.cz>
Date: Sun Mar 3 08:10:50 2019 +0100
Version bump for unity-extra/ehooks
fix app-text/evince
fix media-gfx/gnome-screenshot
fix x11-terms/gnome-terminal
commit 0c68e84902f713f8f07db803d2e3f034d9508e33
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Jan 4 07:19:30 2019 +0100
unity-extra/ehooks - fix default theme for app-office/libreoffice
commit 688d0063bc5eb4e4320ef4ec716374ee308858d8
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu Jan 3 19:10:55 2019 +0100
Version bump for unity-extra/ehooks
commit 04c558dfcaf7137a82dd1f36a3523cd71d700d82
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu Jan 3 18:57:55 2019 +0100
unity-extra/ehooks - fix app-office/libreoffice
commit ae19f7bd09be1772d7ffa6a8f3d9eac2ea9d0363
Author: c4pp4 <c4pp4@seznam.cz>
Date: Tue Dec 4 19:11:39 2018 +0100
Fix Manifest unity-extra/ehooks
commit 19967934e9374dafa3a5a1d01812eaf7f0b07bb3
Author: c4pp4 <c4pp4@seznam.cz>
Date: Tue Dec 4 18:51:08 2018 +0100
Version bump for unity-extra/ehooks
remove all gtkheaderbar related ehooks or patches - to show traditional titlebar instead of gtkheaderbar, enable unity-base/unity-meta[nocsd] USE flag
update ehook for x11-libs/vte:2.91
update ehook for x11-terms/gnome-terminal
commit 2d014125f10c8e48e77b70e639fef4989b2efc39
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu Nov 1 01:12:31 2018 +0100
Version bump for unity-extra/ehooks
add ehook for media-sound/audacity
remove ehook for www-client/firefox-52
remove ehook for x11-base/xorg-server-1.19
commit 7573dc627156622c0858dae9c49b6c1711666f7a
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu May 31 09:33:20 2018 +0200
unity-extra/ehooks - fix media-gfx/eog-3.28.2 patch
commit def168169670284162909ea7187a603c365927f6
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu May 10 19:24:51 2018 +0200
unity-extra/ehooks - move firefox-52 into this package, remove outdated packages, cosmetic changes, update NOTES
commit b2d05467753c6adfa80e8cafb2c6a583c07cc114
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Sun May 6 18:07:12 2018 +0930
Update metadata.xml files with new elements to keep repoman happy
commit 6f00e86127be352948da0684ee42bdc9c94e88fe
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Mon Apr 30 21:55:11 2018 +0930
Stabilise Artful, drop Zesty
commit 867c684e847c73bc35122cbeca0e928701d76e1b
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Thu Jan 25 10:09:51 2018 +1030
Fix ebuild headers to remove redundant 'Id' line and adjust Copyright year to 2018
commit 17144986e2c925e06c15681b3fb780c60b4c74c1
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu Dec 21 21:45:59 2017 +0100
ehooks related tweaks
- error handling
- README_ebuild_hooks.txt
- highlight emerge info when applying ehook
commit 524323a613e3718a9b029ad3d4b4a2294d80e4b1
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu Dec 7 19:09:07 2017 +0100
ehooks - fixes #184
- replace firefox.desktop.in link with regular file
Other changes:
- remove stderr die commands (stderr is handled by profile.bashrc)
- redirect die "<message>" commands to stdout
- remove old ehooks (systemd-232, libreoffice-5.2)
commit 739a1dfadd163219ea6422c42271091cacaea9ed
Author: c4pp4 <c4pp4@seznam.cz>
Date: Wed Oct 18 00:20:13 2017 +0200
unity-extra/ehooks - rename xorg-server-1.19.3 to 1.19
commit 7b9e495e9b076852b4215a2d1142d7573a895e8e
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Sep 15 04:11:39 2017 +0200
Replace unity-patches with ehooks
- drop unity-extra/unity-patches
- introduce unity-extra/ehooks
- drop app-eselect/eselect-unity-patches
- introduce app-eselect/eselect-ehooks
- introduce README_ebuild_hooks.txt
- profile.bashrc and unity-base/unity-meta changed accordingly
Basedir search order:
1) /var/lib/layman/unity-gentoo/profiles/$/ehooks
2) /etc/portage/ehooks
Pkgdir search order:
e.g. package app-arch/file-roller-3.22.3
1) ${basedir}/app-arch/file-roller-3.22.3-r0
2) ${basedir}/app-arch/file-roller-3.22.3
3) ${basedir}/app-arch/file-roller-3.22
3) ${basedir}/app-arch/file-roller-3
4) ${basedir}/app-arch/file-roller
- all of the above may be optionally followed by a slot:
${basedir}/app-arch/file-roller-3.22.3-r0:0
${basedir}/app-arch/file-roller-3.22:0
${basedir}/app-arch/file-roller:0
- empty pkgdir excludes package.
File format to trigger ebuild hook:
{pre,post}_$.ehook
1) pre_pkg_setup.ehook
2) post_pkg_setup.ehook
3) pre_src_unpack.ehook
4) post_src_unpack.ehook
5) pre_src_prepare.ehook
6) post_src_prepare.ehook
7) pre_src_configure.ehook
8) post_src_configure.ehook
9) pre_src_compile.ehook
10) post_src_compile.ehook
11) pre_src_install.ehook
12) post_src_install.ehook
13) pre_pkg_preinst.ehook
14) post_pkg_preinst.ehook
15) pre_pkg_postinst.ehook
16) post_pkg_postinst.ehook
- it's possible to use filename prefix and sort it:
[...]pre_src_prepare.ehook
01_pre_src_prepare.ehook
aa-pre_src_prepare.ehook
File body:
ebuild_hook() {
[COMMANDS...]
}
- templates are in ${basedir}/templates
- command to apply patches in 'prepare' phase:
eapply "$"
- command to trigger eautoreconf in pre_src_prepare:
eautoreconf
and in post_src_prepare:
AT_NOELIBTOOLIZE="yes" eautoreconf
$
- path to ${pkgdir}/files
- used for patches and miscellaneous files
Patch file format:
- extensions: *.patch or *.diff
- use filename prefix to control apply order
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Tue Jul 19 09:22:30 2022 +0930
Stabilise Jammy and drop Hirsute
commit 2e1c9b10301cf75bc40d704901ef24532f8fcd4d
Author: c4pp4 <c4pp4@seznam.cz>
Date: Sun Sep 5 15:06:24 2021 +0200
unity-extra/ehooks - adjust USE flags according to =media-libs/freetype-2.11.0
commit 18d70477a985b8f80ed085491a1bf77d0bb4bcd9
Author: c4pp4 <c4pp4@seznam.cz>
Date: Mon Jun 28 00:39:44 2021 +0200
unity-extra/ehooks - detect profile via ubuntu-versionator
commit f91a0d158d6086db3e3a78457c6c7e51541423f3
Author: c4pp4 <c4pp4@seznam.cz>
Date: Sun Jun 27 14:24:08 2021 +0200
Update PYTHON_COMPAT, EAPI and versioning
commit 9913323f46bcf2c0cf0f170c29148d6638c2e6fb
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Jun 18 03:25:34 2021 +0200
Stabilise Hirsute and drop Groovy
commit 2b0be7c0044dad20dd428474324fca3f77732013
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Wed Jan 27 16:03:31 2021 +1030
Stabilise Groovy and drop Focal
commit b4bda9373c3d41b5db17be8e01cdb9acac679530
Author: c4pp4 <c4pp4@seznam.cz>
Date: Sat Sep 19 03:48:48 2020 +0200
[ehooks] x11-apps/copyq - use ubuntu-mono-dark tray icon color
commit f35522eb66a1eaae5cf619a1f56767e9c7a25e61
Author: c4pp4 <c4pp4@seznam.cz>
Date: Sat Sep 5 04:35:53 2020 +0200
[ehooks] net-im/telegram-desktop - add ubuntu-mono-dark tray icons and disable tray counter
commit 5e5b783321288ee654652208ceca26385f203b89
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Jul 17 11:31:32 2020 +0200
Use REPO_ROOT variable name (cosmetic changes)
commit 6503c08f5061d188250dcbca8c187e8e7edd6b66
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Jul 10 22:25:21 2020 +0200
[ehooks] Move ehooks from 'profiles/releases/$/ehooks' to 'profiles/ehooks'
commit 5fb1a8ac557df4d37f8fefe6da8ab4bad2cd8d0d
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Sat Jan 11 09:15:54 2020 +1030
Update Copyright headers
commit a8c174ac399a285e13ee336f91e81aaf8b9e5de8
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Mon Dec 16 23:26:24 2019 +1030
Stabilise Disco and drop Cosmic
commit 82553d5748fafd6b91e14ed9cddb247205180a12
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Dec 6 06:44:34 2019 +0100
[ehooks] add fontconfig_adjust USE flag
commit 700c6945c474fc2dd145e3794af16c11eff96376
Author: c4pp4 <c4pp4@seznam.cz>
Date: Mon Sep 9 18:26:25 2019 +0200
[ehooks] provide a way for users to apply their own ebuild hooks (see README_ehooks.txt)
commit 8fce2c214dcb11f08caf962ab234eead74bddb3c
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu Aug 15 16:48:35 2019 +0200
[ehooks] improve checking
commit 83cfbaafaa591486e9fb22412606b9aaaa73cb2b
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Jul 12 05:48:26 2019 +0200
[ehooks] tweaks
commit 0e0be57dfc49c9301df6c42aa27d71d012ab7b1e
Author: c4pp4 <c4pp4@seznam.cz>
Date: Tue Jul 9 21:19:28 2019 +0200
[ehooks] fix looking for installed packages
commit 9ff3b25d5defa13eb57266902f8dba5a02f8ec30
Author: c4pp4 <c4pp4@seznam.cz>
Date: Tue Jul 9 06:52:00 2019 +0200
[ehooks] see README_ebuild_hooks.txt for changes
commit 85dfa8a0f4ae8d81d94212d1630b2f2390c61a88
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu May 30 02:40:01 2019 +0200
unity-extra/ehooks - LibreOffice - make Tango as the fallback for Human icon theme
commit c6b900b53e089dee2afcbbd91e6988e1a706869e
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Sat May 4 22:24:35 2019 +0930
Update Copyright headers
commit 4f3ad9a67c3ecc450b73d5cfd6bf71091e7b32b8
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Mar 29 20:24:04 2019 +0100
unity-extra/ehooks - fix totem and add translations for eog and totem
commit ddcd7a05f20b471f86cb3b704d05bef59366d47b
Author: c4pp4 <c4pp4@seznam.cz>
Date: Wed Mar 27 17:18:26 2019 +0100
unity-extra/ehooks - fix evince traditional menubar (Help, About, Save a Copy) and add translations from artful
commit 51a4372f639e2f14a5dab6d91e202050c3360a4b
Author: c4pp4 <c4pp4@seznam.cz>
Date: Wed Mar 27 00:27:43 2019 +0100
Tidy ehooks
commit 1e2ac24889671b469a5a3a2b3a03ec397b110d38
Author: c4pp4 <c4pp4@seznam.cz>
Date: Tue Mar 26 04:51:49 2019 +0100
unity-extra/ehooks - fix gnome-terminal
commit 8235573e81f948e28d933dd08d04f508b6ea22f6
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Wed Mar 20 07:03:53 2019 +1030
Version bump for www-client/chromium
commit 642c3e7afb53d4e12d1681caff88b44dc717ac67
Author: c4pp4 <c4pp4@seznam.cz>
Date: Sun Mar 3 08:10:50 2019 +0100
Version bump for unity-extra/ehooks
fix app-text/evince
fix media-gfx/gnome-screenshot
fix x11-terms/gnome-terminal
commit 0c68e84902f713f8f07db803d2e3f034d9508e33
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Jan 4 07:19:30 2019 +0100
unity-extra/ehooks - fix default theme for app-office/libreoffice
commit 688d0063bc5eb4e4320ef4ec716374ee308858d8
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu Jan 3 19:10:55 2019 +0100
Version bump for unity-extra/ehooks
commit 04c558dfcaf7137a82dd1f36a3523cd71d700d82
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu Jan 3 18:57:55 2019 +0100
unity-extra/ehooks - fix app-office/libreoffice
commit ae19f7bd09be1772d7ffa6a8f3d9eac2ea9d0363
Author: c4pp4 <c4pp4@seznam.cz>
Date: Tue Dec 4 19:11:39 2018 +0100
Fix Manifest unity-extra/ehooks
commit 19967934e9374dafa3a5a1d01812eaf7f0b07bb3
Author: c4pp4 <c4pp4@seznam.cz>
Date: Tue Dec 4 18:51:08 2018 +0100
Version bump for unity-extra/ehooks
remove all gtkheaderbar related ehooks or patches - to show traditional titlebar instead of gtkheaderbar, enable unity-base/unity-meta[nocsd] USE flag
update ehook for x11-libs/vte:2.91
update ehook for x11-terms/gnome-terminal
commit 2d014125f10c8e48e77b70e639fef4989b2efc39
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu Nov 1 01:12:31 2018 +0100
Version bump for unity-extra/ehooks
add ehook for media-sound/audacity
remove ehook for www-client/firefox-52
remove ehook for x11-base/xorg-server-1.19
commit 7573dc627156622c0858dae9c49b6c1711666f7a
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu May 31 09:33:20 2018 +0200
unity-extra/ehooks - fix media-gfx/eog-3.28.2 patch
commit def168169670284162909ea7187a603c365927f6
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu May 10 19:24:51 2018 +0200
unity-extra/ehooks - move firefox-52 into this package, remove outdated packages, cosmetic changes, update NOTES
commit b2d05467753c6adfa80e8cafb2c6a583c07cc114
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Sun May 6 18:07:12 2018 +0930
Update metadata.xml files with new elements to keep repoman happy
commit 6f00e86127be352948da0684ee42bdc9c94e88fe
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Mon Apr 30 21:55:11 2018 +0930
Stabilise Artful, drop Zesty
commit 867c684e847c73bc35122cbeca0e928701d76e1b
Author: Rick Harris <rickfharris@yahoo.com.au>
Date: Thu Jan 25 10:09:51 2018 +1030
Fix ebuild headers to remove redundant 'Id' line and adjust Copyright year to 2018
commit 17144986e2c925e06c15681b3fb780c60b4c74c1
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu Dec 21 21:45:59 2017 +0100
ehooks related tweaks
- error handling
- README_ebuild_hooks.txt
- highlight emerge info when applying ehook
commit 524323a613e3718a9b029ad3d4b4a2294d80e4b1
Author: c4pp4 <c4pp4@seznam.cz>
Date: Thu Dec 7 19:09:07 2017 +0100
ehooks - fixes #184
- replace firefox.desktop.in link with regular file
Other changes:
- remove stderr die commands (stderr is handled by profile.bashrc)
- redirect die "<message>" commands to stdout
- remove old ehooks (systemd-232, libreoffice-5.2)
commit 739a1dfadd163219ea6422c42271091cacaea9ed
Author: c4pp4 <c4pp4@seznam.cz>
Date: Wed Oct 18 00:20:13 2017 +0200
unity-extra/ehooks - rename xorg-server-1.19.3 to 1.19
commit 7b9e495e9b076852b4215a2d1142d7573a895e8e
Author: c4pp4 <c4pp4@seznam.cz>
Date: Fri Sep 15 04:11:39 2017 +0200
Replace unity-patches with ehooks
- drop unity-extra/unity-patches
- introduce unity-extra/ehooks
- drop app-eselect/eselect-unity-patches
- introduce app-eselect/eselect-ehooks
- introduce README_ebuild_hooks.txt
- profile.bashrc and unity-base/unity-meta changed accordingly
Basedir search order:
1) /var/lib/layman/unity-gentoo/profiles/$/ehooks
2) /etc/portage/ehooks
Pkgdir search order:
e.g. package app-arch/file-roller-3.22.3
1) ${basedir}/app-arch/file-roller-3.22.3-r0
2) ${basedir}/app-arch/file-roller-3.22.3
3) ${basedir}/app-arch/file-roller-3.22
3) ${basedir}/app-arch/file-roller-3
4) ${basedir}/app-arch/file-roller
- all of the above may be optionally followed by a slot:
${basedir}/app-arch/file-roller-3.22.3-r0:0
${basedir}/app-arch/file-roller-3.22:0
${basedir}/app-arch/file-roller:0
- empty pkgdir excludes package.
File format to trigger ebuild hook:
{pre,post}_$.ehook
1) pre_pkg_setup.ehook
2) post_pkg_setup.ehook
3) pre_src_unpack.ehook
4) post_src_unpack.ehook
5) pre_src_prepare.ehook
6) post_src_prepare.ehook
7) pre_src_configure.ehook
8) post_src_configure.ehook
9) pre_src_compile.ehook
10) post_src_compile.ehook
11) pre_src_install.ehook
12) post_src_install.ehook
13) pre_pkg_preinst.ehook
14) post_pkg_preinst.ehook
15) pre_pkg_postinst.ehook
16) post_pkg_postinst.ehook
- it's possible to use filename prefix and sort it:
[...]pre_src_prepare.ehook
01_pre_src_prepare.ehook
aa-pre_src_prepare.ehook
File body:
ebuild_hook() {
[COMMANDS...]
}
- templates are in ${basedir}/templates
- command to apply patches in 'prepare' phase:
eapply "$"
- command to trigger eautoreconf in pre_src_prepare:
eautoreconf
and in post_src_prepare:
AT_NOELIBTOOLIZE="yes" eautoreconf
$
- path to ${pkgdir}/files
- used for patches and miscellaneous files
Patch file format:
- extensions: *.patch or *.diff
- use filename prefix to control apply order