diff options
author | ILMostro <ilmostro7@gmail.com> | 2018-06-19 19:43:59 -0500 |
---|---|---|
committer | ILMostro <ilmostro7@gmail.com> | 2018-06-19 19:43:59 -0500 |
commit | 78f1a2a2ac8c8ea696e2bdcd2dae966a17abdb25 (patch) | |
tree | 3bb09f465c15f3cdb770d29ba1d00d9f97e5e627 /x11-wm | |
parent | updated to `penlight-1.5.4`. (diff) | |
download | ag-ops-78f1a2a2ac8c8ea696e2bdcd2dae966a17abdb25.tar.gz ag-ops-78f1a2a2ac8c8ea696e2bdcd2dae966a17abdb25.tar.bz2 ag-ops-78f1a2a2ac8c8ea696e2bdcd2dae966a17abdb25.zip |
added copy of `x11-wm/awesome` from portage tree to overlay before updating
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/awesome/Manifest | 17 | ||||
-rw-r--r-- | x11-wm/awesome/awesome-3.5.9-r2.ebuild | 127 | ||||
-rw-r--r-- | x11-wm/awesome/awesome-4.2-r2.ebuild | 141 | ||||
-rw-r--r-- | x11-wm/awesome/awesome-9999.ebuild | 132 | ||||
-rw-r--r-- | x11-wm/awesome/files/awesome-3.5.5-cflag-cleanup.patch | 12 | ||||
-rw-r--r-- | x11-wm/awesome/files/awesome-3.5.5-util.lua-xdg-icons-fix.patch | 46 | ||||
-rw-r--r-- | x11-wm/awesome/files/awesome-3.5_rc1-convert-path.patch | 12 | ||||
-rw-r--r-- | x11-wm/awesome/files/awesome-4.0-cflag-cleanup.patch | 11 | ||||
-rw-r--r-- | x11-wm/awesome/files/awesome-4.0-convert-path.patch | 11 | ||||
-rw-r--r-- | x11-wm/awesome/files/awesome-gnome-3.session | 3 | ||||
-rw-r--r-- | x11-wm/awesome/files/awesome-gnome-xsession.desktop | 6 | ||||
-rw-r--r-- | x11-wm/awesome/files/awesome-gnome.desktop | 8 | ||||
-rw-r--r-- | x11-wm/awesome/files/awesome-gnome.session | 6 | ||||
-rw-r--r-- | x11-wm/awesome/files/awesome-session | 90 | ||||
-rw-r--r-- | x11-wm/awesome/files/awesome-xsession.patch | 9 | ||||
-rw-r--r-- | x11-wm/awesome/metadata.xml | 19 |
16 files changed, 650 insertions, 0 deletions
diff --git a/x11-wm/awesome/Manifest b/x11-wm/awesome/Manifest new file mode 100644 index 0000000..ae5b775 --- /dev/null +++ b/x11-wm/awesome/Manifest @@ -0,0 +1,17 @@ +AUX awesome-3.5.5-cflag-cleanup.patch 660 BLAKE2B 0c4311d7d125161c44ed668da6ce1e2bc0e2c5a1850c2341e4caec764a2673f99570f06856c815454f6cc6204bb7b71bbd416e862156cc40c47bf0343a6e1ae6 SHA512 5711e328839ce32789fe213c2c1d6b56e476d7ba09303d52dc5c307a97b35bbdc1c9c0d673a51b5859a2c0f035002152c762e3cd725c4231bc811dfac5dad79f +AUX awesome-3.5.5-util.lua-xdg-icons-fix.patch 1756 BLAKE2B fe0ba6026faaa674f2b461d95cb6b829d31e74aad8b9e5559c598dec46c62a3218beb4cfa075ca7028d74f902ae5b16949fac7cbf4bac06f436d1460dcd457c0 SHA512 8348b51a90ac9f0423de1e5ae81aeee6dc8da8e249bcee09a0ddf89c582b34f1f420ef579d58c717078bbf7eedb6cbe36782bf9cfddbe2bd27e96c726bd493d6 +AUX awesome-3.5_rc1-convert-path.patch 539 BLAKE2B 4904c47c165384dadf6229c1d92cbc313df1e70566b894b9b325d24d457b99d53544e885f6c086073c903aca6f2b365eb2384145c85194f1ab91740dee5142b6 SHA512 b5b8f42ddd21bf851e13fe0a0d844b055795979ae701a418780a2e0282cedd1ae745f00c13e5a0f5b9ac48a70c2ffbf7d9b7dd2856783a4b0434b09683947150 +AUX awesome-4.0-cflag-cleanup.patch 395 BLAKE2B 02865c0e99fc81e00e501758d95eb47ebb3960575258c42550f1530d97aff14256911b8107eac606261ee427399934d877d9f116a624216dfee143fd9eb4a8f4 SHA512 e9ffe2b66046e0ebbc0bb3c0b8f9bd67bd7d8d351792e299730abfbd8f284dd0631e87b27a8ba22587e9059b13d13381902efb4b9423348b735021eaee779e9c +AUX awesome-4.0-convert-path.patch 257 BLAKE2B 7f4504273e155c6ae70fc8aefa067513af32fa6fc38efeab1a642e8594910bbbb559dbfad33c703420b0fa64e3aef9289750f92a41aa5d76e29161f32a1cb6a3 SHA512 3eadbc1d14a18e3d669bb8ecf3769ff888d4b30328f0167166c8632498ad50bf21f004098960507a1b96c5bd5f76a4fcdc74022d820d2d809175ec2829a26f5d +AUX awesome-gnome-3.session 93 BLAKE2B 0af3b5369b269f698af4b375d1e7725789592ce35302d5afa4ae3441317816dbdd442b51f616ef8a8c81d87d4d28ad37859280d769b725825e5f4b909fb79dff SHA512 0530d7c1f5239cad9cd32bbb37bab449fe79fe6d658037a31d4ab29936dc119a41f8de66bb321a3fbd5fd300b378930466073624d7a30f089dda9c0ad3897829 +AUX awesome-gnome-xsession.desktop 179 BLAKE2B c8755013d73f31fb9c613654521ce5a027120860bfcbfc8a5c03169f671a01442f10096a8296399ca4c7f533f64c150bd9740ee5db346c9cc7afdb8139638619 SHA512 873c70a499bd44874b3399a58f42c69740023b43c17e6548e0c30a54cf64ab37a0ffec240e06dff4a6950b50f7010d48fdd036448f145fed3ac3095d4caf508c +AUX awesome-gnome.desktop 191 BLAKE2B 8076b398c42443f48dc83f0cd12e56ff342713c9378639aa33e3eba47a6d6b7b84b1b805a2b777ef4e98d7890e04a46773f78e0cb414addb7d570d0a11701f3f SHA512 50570e0bd7c7ef3dc39bcf0dfdbc35d44b67316da7574aaea26dedb89726b40d04e4d509fb798b36c49930f247f0293fdeff2bdc32e6b3067e4f568b30f99fae +AUX awesome-gnome.session 220 BLAKE2B ea84c3a24feb5c9921940dedd6f3fa05a6987b6aab96b2113be6215b0bd94d9bb73524ebaea8ad76a05b1ece0d76265aab82930048acd05912c9e127b0cdb868 SHA512 86246ddd9db41007c23735d0773b5c6d37eeda33318d9e3e33f57fb46befdd32380aaf9fb6bf539a9080e5f2400ccf5d7de55842c420c458b8e8d62a5edae09b +AUX awesome-session 1999 BLAKE2B c7c784fba884ff0e579eb60cb049e695022be162a535065a172c461ec60d369415faa26be7cd60645e671ae8b2861b192ff962b803473746b567ef874bc706e9 SHA512 b6e7cc0813569b448b030cb8516d0272ebcf60b96f680b7de43dc4374e6e2d85b9bd841c6f1ab62caca52120c303332653e3de38eca0fe6a813b9bc5b68ac8b7 +AUX awesome-xsession.patch 291 BLAKE2B fb8ca929487ef45cd64c44bbb3db2b7c4a1be4f5abf5f8fa7467694226bdcd1441bd5c601f0f27e7d2c8656bb4c75cb364cd6d8d641a648611ed2658b27cd389 SHA512 1d19f3ac5e9f8fd1084fd5e092d52ffbabb06fc3dc94f6f8e62834a3a03bd5bcb04adc698ac3a022c5446a07a847be35e3f3003e8bc9e7d35c6c82350517233d +DIST awesome-3.5.9.tar.xz 723084 BLAKE2B 96f4c5df98147399f28d1b1455ac53800f2222969599486c2f79b73ba36cfa237270cd5972d4e10e0a4f774a54dfa92948bba5d2e0438687d36739e12c3f5ecc SHA512 6a4c679b293e8cd85d1f7e13f6dea704cbb267e42b9260496a54b657a66d6148aae51521d802d61baaeb23df0d4a8ad0b28d9dc922ea5da2a347b4251cce5e25 +DIST awesome-4.2.tar.xz 987024 BLAKE2B b2aaa993bafa83121d165d21083dfcac825e373be9547490f8b93b8e8b0f90470395a0238affaf9990f719b8bd2f36a255f6468b6422406787a3c96946c4e831 SHA512 134dd3625c86243861b3d0701cc8bfd8c00986d7027f0832016c3f5e59e6b9a1ef2f677bb0d1d66ece63449533e4b13d8d7388e96e6f9014212030a79f163e09 +EBUILD awesome-3.5.9-r2.ebuild 3120 BLAKE2B 71d1668a910bc570389cd9fdba9cf948c6937c53fb335df8d5cc8ab7fbc6811e0635895094be3fd67a49e4a7a43a7cc602d88a9b33534ffc6d6b684911ccc858 SHA512 c4c0d39f617c3cdede84786e4fc8a7c4f01b4e329a06d092a09a773af3be42dd0c28e6178f294710579737f3d441ef4f7cd88fd7afb1e1acfe2279ad81192ac4 +EBUILD awesome-4.2-r2.ebuild 4036 BLAKE2B ea15b83f977e57203d3ea875917c88a86fbe6fe7d4bddb91c4135edf26660be212bed707c3b42bf5951825928ca616fc86ef10f540f64d188c1d97443b7cde88 SHA512 3f90acc941090576ad99b40f97c254431796c29c846db5b67e59303a158e68397d791ec6cbe798d698c91075c56823522b6728f2f955b136e65669743a889c07 +EBUILD awesome-9999.ebuild 3615 BLAKE2B 7bafe7eec8369c0dcab8152d5f40fdc77edff5c05d4d91ab73a92edc09f3754a4f73a7fddd18c4d3cb27c32b57bfb3b182dc3bf0684985d45afa56e503a61a13 SHA512 a39da115a6829487a9bd08b5297e7ca4d4eb443945cc733f8b07d86a390b50137fb9b23f524d9ad5c43210fcac403e34630b8f2c84a0e75e9b02ebc50db43666 +MISC metadata.xml 568 BLAKE2B 2a3b777ad5eca2e372536b4ad13b3861b67f88d1cd7746c9a5c0d5b42ff2aec908d53ffd338a5eed7f146f74602017ec67a3d1e1cedcd61d57741af9c599d754 SHA512 6f46bf6d3ba0d5d7917e6d54fa4b98309a7cca66da2299b3206544b90ff1322a2705fb11cdee31808d91a3a59149811c9c25436cf204787278c03f620ef3b105 diff --git a/x11-wm/awesome/awesome-3.5.9-r2.ebuild b/x11-wm/awesome/awesome-3.5.9-r2.ebuild new file mode 100644 index 0000000..0a13897 --- /dev/null +++ b/x11-wm/awesome/awesome-3.5.9-r2.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +inherit cmake-utils eutils + +DESCRIPTION="A dynamic floating and tiling window manager" +HOMEPAGE="http://awesome.naquadah.org/" +SRC_URI="http://awesome.naquadah.org/download/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ppc ppc64 x86 ~x86-fbsd" +IUSE="dbus doc elibc_FreeBSD gnome" + +COMMON_DEPEND=" + >=dev-lang/lua-5.1:0 + dev-libs/glib:2 + >=dev-libs/libxdg-basedir-1 + >=dev-lua/lgi-0.7 + x11-libs/cairo[xcb] + x11-libs/gdk-pixbuf:2 + >=x11-libs/libxcb-1.6 + >=x11-libs/pango-1.19.3[introspection] + >=x11-libs/startup-notification-0.10_p20110426 + >=x11-libs/xcb-util-0.3.8 + x11-libs/xcb-util-cursor + x11-libs/libXcursor + >=x11-libs/libX11-1.3.99.901 + dbus? ( >=sys-apps/dbus-1 ) + elibc_FreeBSD? ( || ( dev-libs/libexecinfo >=sys-freebsd/freebsd-lib-10.0 ) )" + +# graphicsmagick's 'convert -channel' has no Alpha support, bug #352282 +DEPEND="${COMMON_DEPEND} + >=app-text/asciidoc-8.4.5 + app-text/xmlto + dev-util/gperf + virtual/pkgconfig + media-gfx/imagemagick[png] + >=x11-base/xcb-proto-1.5 + x11-base/xorg-proto + doc? ( + app-doc/doxygen + media-gfx/graphviz + )" + +RDEPEND="${COMMON_DEPEND}" + +DOCS="AUTHORS BUGS PATCHES README STYLE" + +PATCHES=( + "${FILESDIR}/${PN}-3.5_rc1-convert-path.patch" + "${FILESDIR}/${PN}-xsession.patch" + "${FILESDIR}/${PN}-3.5.5-util.lua-xdg-icons-fix.patch" + "${FILESDIR}/${PN}-3.5.5-cflag-cleanup.patch" +) + +src_configure() { + mycmakeargs=( + -DSYSCONFDIR="${EPREFIX}"/etc + $(cmake-utils_use_with dbus DBUS) + $(cmake-utils_use doc GENERATE_DOC) + ) + + cmake-utils_src_configure +} + +src_compile() { + local myargs="all" + + if use doc ; then + myargs="${myargs} doc" + fi + cmake-utils_src_make ${myargs} +} + +src_install() { + cmake-utils_src_install + + if use doc ; then + ( + cd "${CMAKE_BUILD_DIR}"/doc + mv html doxygen + dohtml -r doxygen || die + ) + fi + rm -rf "${ED}"/usr/share/doc/${PN} || die "Cleanup of dupe docs failed" + + exeinto /etc/X11/Sessions + newexe "${FILESDIR}"/${PN}-session ${PN} || die + + # GNOME-based awesome + if use gnome ; then + # GNOME session + insinto /usr/share/gnome-session/sessions + newins "${FILESDIR}/${PN}-gnome-3.session" "${PN}-gnome.session" || die + # Application launcher + domenu "${FILESDIR}/${PN}-gnome.desktop" || die + # X Session + insinto /usr/share/xsessions/ + doins "${FILESDIR}/${PN}-gnome-xsession.desktop" || die + fi +} + +pkg_postinst() { + # bug #447308 + if use gnome; then + elog + elog "You have enabled the gnome USE flag." + elog "Please note that quitting awesome won't kill your gnome session." + elog "To really quit the session, you should bind your quit key" + elog "to the following command:" + elog " gnome-session-quit --logout" + elog "For more info visit" + elog " https://bugs.gentoo.org/show_bug.cgi?id=447308" + fi + + # bug #440724 + elog + elog "If you are having issues with Java application windows being" + elog "completely blank, try installing" + elog " x11-misc/wmname" + elog "and setting the WM name to LG3D." + elog "For more info visit" + elog " https://bugs.gentoo.org/show_bug.cgi?id=440724" + elog +} diff --git a/x11-wm/awesome/awesome-4.2-r2.ebuild b/x11-wm/awesome/awesome-4.2-r2.ebuild new file mode 100644 index 0000000..3642f6c --- /dev/null +++ b/x11-wm/awesome/awesome-4.2-r2.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils desktop pax-utils versionator + +DESCRIPTION="A dynamic floating and tiling window manager" +HOMEPAGE="https://awesomewm.org/" +SRC_URI="https://github.com/awesomeWM/awesome-releases/raw/master/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="dbus doc elibc_FreeBSD gnome luajit test" + +RDEPEND=" + >=dev-lang/lua-5.1:0 + luajit? ( dev-lang/luajit:2 ) + dev-libs/glib:2 + >=dev-libs/libxdg-basedir-1 + >=dev-lua/lgi-0.8 + x11-libs/cairo[xcb] + x11-libs/gdk-pixbuf:2 + >=x11-libs/libxcb-1.6[xkb] + >=x11-libs/pango-1.19.3[introspection] + >=x11-libs/startup-notification-0.10_p20110426 + >=x11-libs/xcb-util-0.3.8 + x11-libs/xcb-util-cursor + >=x11-libs/xcb-util-keysyms-0.3.4 + >=x11-libs/xcb-util-wm-0.3.8 + >=x11-libs/xcb-util-xrm-1.0 + x11-libs/libXcursor + x11-libs/libxkbcommon[X] + >=x11-libs/libX11-1.3.99.901 + dbus? ( >=sys-apps/dbus-1 ) + elibc_FreeBSD? ( || ( dev-libs/libexecinfo >=sys-freebsd/freebsd-lib-10.0 ) ) +" + +# graphicsmagick's 'convert -channel' has no Alpha support, bug #352282 +DEPEND="${RDEPEND} + >=app-text/asciidoc-8.4.5 + app-text/xmlto + dev-util/gperf + virtual/pkgconfig + media-gfx/imagemagick[png] + >=x11-base/xcb-proto-1.5 + x11-base/xorg-proto + doc? ( dev-lua/ldoc ) + test? ( + app-shells/zsh + x11-base/xorg-server[xvfb] + dev-lua/busted + dev-lua/luacheck + ) +" + +# Skip installation of README.md by einstalldocs, which leads to broken symlink +DOCS=() +PATCHES=( + "${FILESDIR}/${PN}-4.0-convert-path.patch" # bug #408025 + "${FILESDIR}/${PN}-xsession.patch" # bug #408025 + "${FILESDIR}/${PN}-4.0-cflag-cleanup.patch" # bug #509658 +) + +src_configure() { + # Compression of manpages is handled by portage + local mycmakeargs=( + -DSYSCONFDIR="${EPREFIX}"/etc + -DCOMPRESS_MANPAGES=OFF + -DWITH_DBUS=$(usex dbus) + -DGENERATE_DOC=$(usex doc) + -DAWESOME_DOC_PATH="${EPREFIX}"/usr/share/doc/${PF} + ) + if use luajit; then + mycmakeargs+=("-DLUA_INCLUDE_DIR=${EPREFIX}/usr/include/luajit-2.0") + mycmakeargs+=("-DLUA_LIBRARY=${EPREFIX}/usr/$(get_libdir)/libluajit-5.1.so") + fi + cmake-utils_src_configure +} + +src_test() { + # awesome's test suite starts Xvfb by itself, no need for virtualx eclass + HEADLESS=1 cmake-utils_src_make check -j1 +} + +src_install() { + cmake-utils_src_install + rm "${ED}"/usr/share/doc/${PF}/LICENSE || die + + pax-mark m "${ED%/}"/usr/bin/awesome + + exeinto /etc/X11/Sessions + newexe "${FILESDIR}"/${PN}-session ${PN} + + # GNOME-based awesome + if use gnome; then + # GNOME session + insinto /usr/share/gnome-session/sessions + newins "${FILESDIR}"/${PN}-gnome-3.session ${PN}-gnome.session + + # Application launcher + domenu "${FILESDIR}"/${PN}-gnome.desktop + + # X Session + insinto /usr/share/xsessions + doins "${FILESDIR}"/${PN}-gnome-xsession.desktop + fi + + # This directory contains SVG images which we don't want to compress + use doc && touch "${ED}"/usr/share/doc/${PF}/doc/images.ecompress.skip +} + +pkg_postinst() { + # bug #447308 + if use gnome; then + elog "You have enabled the gnome USE flag." + elog "Please note that quitting awesome won't kill your gnome session." + elog "To really quit the session, you should bind your quit key" + elog "to the following command:" + elog " gnome-session-quit --logout" + elog "For more info visit" + elog " https://bugs.gentoo.org/show_bug.cgi?id=447308" + fi + + # bug #440724 + elog "If you are having issues with Java application windows being" + elog "completely blank, try installing" + elog " x11-misc/wmname" + elog "and setting the WM name to LG3D." + elog "For more info visit" + elog " https://bugs.gentoo.org/show_bug.cgi?id=440724" + + for v in ${REPLACING_VERSIONS}; do + if [ "$(get_major_version ${v})" = "3" ]; then + elog "Awesome-4 introduced breaking changes. For release notes and porting guide see" + elog "https://awesomewm.org/apidoc/documentation/89-NEWS.md.html#v4 and" + elog "https://awesomewm.org/apidoc/documentation/17-porting-tips.md.html#v4" + fi + done +} diff --git a/x11-wm/awesome/awesome-9999.ebuild b/x11-wm/awesome/awesome-9999.ebuild new file mode 100644 index 0000000..d3e88b5 --- /dev/null +++ b/x11-wm/awesome/awesome-9999.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils eutils git-r3 pax-utils + +DESCRIPTION="A dynamic floating and tiling window manager" +HOMEPAGE="https://awesomewm.org/" +EGIT_REPO_URI="https://github.com/awesomeWM/${PN}.git" + +LICENSE="GPL-2" +SLOT="0" +IUSE="dbus doc elibc_FreeBSD gnome luajit test" + +RDEPEND=" + >=dev-lang/lua-5.1:0 + luajit? ( dev-lang/luajit:2 ) + dev-libs/glib:2 + >=dev-libs/libxdg-basedir-1 + >=dev-lua/lgi-0.8 + x11-libs/cairo[xcb] + x11-libs/gdk-pixbuf:2 + >=x11-libs/libxcb-1.6[xkb] + >=x11-libs/pango-1.19.3[introspection] + >=x11-libs/startup-notification-0.10_p20110426 + >=x11-libs/xcb-util-0.3.8 + x11-libs/xcb-util-cursor + >=x11-libs/xcb-util-keysyms-0.3.4 + >=x11-libs/xcb-util-wm-0.3.8 + >=x11-libs/xcb-util-xrm-1.0 + x11-libs/libXcursor + x11-libs/libxkbcommon[X] + >=x11-libs/libX11-1.3.99.901 + dbus? ( >=sys-apps/dbus-1 ) + elibc_FreeBSD? ( || ( dev-libs/libexecinfo >=sys-freebsd/freebsd-lib-10.0 ) ) +" + +# graphicsmagick's 'convert -channel' has no Alpha support, bug #352282 +DEPEND="${RDEPEND} + >=app-text/asciidoc-8.4.5 + app-text/xmlto + dev-util/gperf + virtual/pkgconfig + media-gfx/imagemagick[png] + >=x11-base/xcb-proto-1.5 + x11-base/xorg-proto + doc? ( dev-lua/ldoc ) + test? ( + app-shells/zsh + x11-base/xorg-server[xvfb] + dev-lua/busted + dev-lua/luacheck + ) +" + +# Skip installation of README.md by einstalldocs, which leads to broken symlink +DOCS=() +PATCHES=( + "${FILESDIR}/${PN}-4.0-convert-path.patch" # bug #408025 + "${FILESDIR}/${PN}-xsession.patch" # bug #408025 + "${FILESDIR}/${PN}-4.0-cflag-cleanup.patch" # bug #509658 +) + +src_configure() { + # Compression of manpages is handled by portage + local mycmakeargs=( + -DSYSCONFDIR="${EPREFIX}"/etc + -DCOMPRESS_MANPAGES=OFF + -DWITH_DBUS=$(usex dbus) + -DGENERATE_DOC=$(usex doc) + -DAWESOME_DOC_PATH="${EPREFIX}"/usr/share/doc/${PF} + ) + if use luajit; then + mycmakeargs+=("-DLUA_INCLUDE_DIR=${EPREFIX}/usr/include/luajit-2.0") + mycmakeargs+=("-DLUA_LIBRARY=${EPREFIX}/usr/$(get_libdir)/libluajit-5.1.so") + fi + cmake-utils_src_configure +} + +src_test() { + # awesome's test suite starts Xvfb by itself, no need for virtualx eclass + HEADLESS=1 cmake-utils_src_make check -j1 +} + +src_install() { + cmake-utils_src_install + rm "${ED}"/usr/share/doc/${PF}/LICENSE || die + + pax-mark m "${ED%/}"/usr/bin/awesome + + exeinto /etc/X11/Sessions + newexe "${FILESDIR}"/${PN}-session ${PN} + + # GNOME-based awesome + if use gnome; then + # GNOME session + insinto /usr/share/gnome-session/sessions + newins "${FILESDIR}"/${PN}-gnome-3.session ${PN}-gnome.session + + # Application launcher + domenu "${FILESDIR}"/${PN}-gnome.desktop + + # X Session + insinto /usr/share/xsessions + doins "${FILESDIR}"/${PN}-gnome-xsession.desktop + fi + + # This directory contains SVG images which we don't want to compress + use doc && touch "${ED}"/usr/share/doc/${PF}/doc/images.ecompress.skip +} + +pkg_postinst() { + # bug #447308 + if use gnome; then + elog "You have enabled the gnome USE flag." + elog "Please note that quitting awesome won't kill your gnome session." + elog "To really quit the session, you should bind your quit key" + elog "to the following command:" + elog " gnome-session-quit --logout" + elog "For more info visit" + elog " https://bugs.gentoo.org/show_bug.cgi?id=447308" + fi + + # bug #440724 + elog "If you are having issues with Java application windows being" + elog "completely blank, try installing" + elog " x11-misc/wmname" + elog "and setting the WM name to LG3D." + elog "For more info visit" + elog " https://bugs.gentoo.org/show_bug.cgi?id=440724" +} diff --git a/x11-wm/awesome/files/awesome-3.5.5-cflag-cleanup.patch b/x11-wm/awesome/files/awesome-3.5.5-cflag-cleanup.patch new file mode 100644 index 0000000..3cfeaba --- /dev/null +++ b/x11-wm/awesome/files/awesome-3.5.5-cflag-cleanup.patch @@ -0,0 +1,12 @@ +diff -u awesome-3.5.5/awesomeConfig.cmake awesome-3.5.5.new/awesomeConfig.cmake +--- awesome-3.5.5/awesomeConfig.cmake 2014-08-24 23:28:04.178646000 -0400 ++++ awesome-3.5.5.new/awesomeConfig.cmake 2014-08-24 23:28:44.204646000 -0400 +@@ -16,7 +16,7 @@ + option(GENERATE_DOC "generate API documentation" ON) + + # {{{ CFLAGS +-add_definitions(-O1 -std=gnu99 -ggdb3 -rdynamic -fno-strict-aliasing -Wall -Wextra ++add_definitions(-std=gnu99 -fno-strict-aliasing -Wall -Wextra + -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings + -Wsign-compare -Wunused -Wno-unused-parameter -Wuninitialized -Winit-self + -Wpointer-arith -Wformat-nonliteral diff --git a/x11-wm/awesome/files/awesome-3.5.5-util.lua-xdg-icons-fix.patch b/x11-wm/awesome/files/awesome-3.5.5-util.lua-xdg-icons-fix.patch new file mode 100644 index 0000000..588f9ab --- /dev/null +++ b/x11-wm/awesome/files/awesome-3.5.5-util.lua-xdg-icons-fix.patch @@ -0,0 +1,46 @@ +From: Uli Schlachter <psychon@znc.in> +Date: Sat, 12 Apr 2014 14:15:11 +0000 (+0200) +Subject: Merge git://github.com/Teknocrat/awesome +X-Git-Url: http://git.naquadah.org/?p=awesome.git;a=commitdiff_plain;h=d76d3e0b6a00b8b289b3801ba197e0dae732a92d;hp=1090719d677c86e90a1394a34f0effb418728493 + +Merge git://github.com/Teknocrat/awesome +--- + +diff --git a/lib/awful/util.lua.in b/lib/awful/util.lua.in +index 1d35f2f..123c4a6 100644 +--- a/lib/awful/util.lua.in ++++ b/lib/awful/util.lua.in +@@ -185,21 +185,24 @@ end + -- of the dirs are searched first + function util.geticonpath(iconname, exts, dirs, size) + exts = exts or { 'png', 'gif' } +- dirs = dirs or { '/usr/share/pixmaps/' } ++ dirs = dirs or { '/usr/share/pixmaps/', '/usr/share/icons/hicolor/' } ++ icontypes = { 'apps', 'actions', 'categories', 'emblems', ++ 'mimetypes', 'status', 'devices', 'extras', 'places', 'stock' } + for _, d in pairs(dirs) do ++ local icon + for _, e in pairs(exts) do +- local icon +- if size then +- icon = string.format("%s%ux%u/%s.%s", +- d, size, size, iconname, e) +- if util.file_readable(icon) then +- return icon +- end +- end + icon = d .. iconname .. '.' .. e + if util.file_readable(icon) then + return icon + end ++ if size then ++ for _, t in pairs(icontypes) do ++ icon = string.format("%s%ux%u/%s/%s.%s", d, size, size, t, iconname, e) ++ if util.file_readable(icon) then ++ return icon ++ end ++ end ++ end + end + end + end diff --git a/x11-wm/awesome/files/awesome-3.5_rc1-convert-path.patch b/x11-wm/awesome/files/awesome-3.5_rc1-convert-path.patch new file mode 100644 index 0000000..e6c37b0 --- /dev/null +++ b/x11-wm/awesome/files/awesome-3.5_rc1-convert-path.patch @@ -0,0 +1,12 @@ +diff -Nuar --exclude '*.orig' awesome-3.5-rc1.orig/awesomeConfig.cmake awesome-3.5-rc1/awesomeConfig.cmake +--- awesome-3.5-rc1.orig/awesomeConfig.cmake 2012-11-24 13:51:33.000000000 +0000 ++++ awesome-3.5-rc1/awesomeConfig.cmake 2012-11-24 20:42:23.743412441 +0000 +@@ -56,7 +56,7 @@ + a_find_program(LUA_EXECUTABLE lua FALSE) + a_find_program(LDOC_EXECUTABLE ldoc.lua FALSE) + # theme graphics +-a_find_program(CONVERT_EXECUTABLE convert TRUE) ++a_find_program(CONVERT_EXECUTABLE bin/convert TRUE) + # doxygen + include(FindDoxygen) + # pkg-config diff --git a/x11-wm/awesome/files/awesome-4.0-cflag-cleanup.patch b/x11-wm/awesome/files/awesome-4.0-cflag-cleanup.patch new file mode 100644 index 0000000..4b83794 --- /dev/null +++ b/x11-wm/awesome/files/awesome-4.0-cflag-cleanup.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -98,7 +98,7 @@ + + # CFLAGS + set(AWESOME_C_FLAGS +- -O1 -std=gnu99 -ggdb3 -fno-strict-aliasing -Wall -Wextra ++ -std=gnu99 -fno-strict-aliasing -Wall -Wextra + -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings + -Wsign-compare -Wunused -Wno-unused-parameter -Wuninitialized -Winit-self + -Wpointer-arith -Wformat-nonliteral diff --git a/x11-wm/awesome/files/awesome-4.0-convert-path.patch b/x11-wm/awesome/files/awesome-4.0-convert-path.patch new file mode 100644 index 0000000..1eabf09 --- /dev/null +++ b/x11-wm/awesome/files/awesome-4.0-convert-path.patch @@ -0,0 +1,11 @@ +--- a/awesomeConfig.cmake ++++ b/awesomeConfig.cmake +@@ -51,7 +51,7 @@ + endif() + endif() + # theme graphics +-a_find_program(CONVERT_EXECUTABLE convert TRUE) ++a_find_program(CONVERT_EXECUTABLE bin/convert TRUE) + # pkg-config + include(FindPkgConfig) + # lua diff --git a/x11-wm/awesome/files/awesome-gnome-3.session b/x11-wm/awesome/files/awesome-gnome-3.session new file mode 100644 index 0000000..d1bd6fa --- /dev/null +++ b/x11-wm/awesome/files/awesome-gnome-3.session @@ -0,0 +1,3 @@ +[GNOME Session] +Name=Awesome session +RequiredComponents=gnome-settings-daemon;awesome-gnome; diff --git a/x11-wm/awesome/files/awesome-gnome-xsession.desktop b/x11-wm/awesome/files/awesome-gnome-xsession.desktop new file mode 100644 index 0000000..148cd3d --- /dev/null +++ b/x11-wm/awesome/files/awesome-gnome-xsession.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Awesome GNOME +Comment=GNOME with highly configurable window manager awesome +TryExec=gnome-session +Exec=gnome-session --session=awesome-gnome +Type=Application diff --git a/x11-wm/awesome/files/awesome-gnome.desktop b/x11-wm/awesome/files/awesome-gnome.desktop new file mode 100644 index 0000000..8adf5fc --- /dev/null +++ b/x11-wm/awesome/files/awesome-gnome.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Awesome +Comment=Highly configurable framework window manager +NoDisplay=true +TryExec=/etc/X11/Sessions/awesome +Exec=/etc/X11/Sessions/awesome diff --git a/x11-wm/awesome/files/awesome-gnome.session b/x11-wm/awesome/files/awesome-gnome.session new file mode 100644 index 0000000..dd0c01b --- /dev/null +++ b/x11-wm/awesome/files/awesome-gnome.session @@ -0,0 +1,6 @@ +[GNOME Session] +Name=Awesome session +RequiredComponents=gnome-settings-daemon; +RequiredProviders=windowmanager;notifications; +DefaultProvider-windowmanager=awesome-gnome +DefaultProvider-notifications=notification-daemon diff --git a/x11-wm/awesome/files/awesome-session b/x11-wm/awesome/files/awesome-session new file mode 100644 index 0000000..fe76946 --- /dev/null +++ b/x11-wm/awesome/files/awesome-session @@ -0,0 +1,90 @@ +#!/bin/sh +# Awesome Xsession starter, based on Xsession shipped by x11-apps/xinit-1.0.5-r1 + +# redirect errors to a file in user's home directory if we can +for errfile in "$HOME/.awesome-errors" "${TMPDIR-/tmp}/awesome-$USER" "/tmp/awesome-$USER" +do + if ( cp /dev/null "$errfile" 2> /dev/null ) + then + chmod 600 "$errfile" + exec > "$errfile" 2>&1 + break + fi +done + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +userxkbmap=$HOME/.Xkbmap + +sysresources=/etc/X11/Xresources +sysmodmap=/etc/X11/Xmodmap +sysxkbmap=/etc/X11/Xkbmap + +rh6sysresources=/etc/X11/xinit/Xresources +rh6sysmodmap=/etc/X11/xinit/Xmodmap + + +# merge in defaults +if [ -f "$rh6sysresources" ]; then + xrdb -merge "$rh6sysresources" +fi + +if [ -f "$sysresources" ]; then + xrdb -merge "$sysresources" +fi + +if [ -f "$userresources" ]; then + xrdb -merge "$userresources" +fi + +# merge in keymaps +if [ -f "$sysxkbmap" ]; then + setxkbmap `cat "$sysxkbmap"` + XKB_IN_USE=yes +fi + +if [ -f "$userxkbmap" ]; then + setxkbmap `cat "$userxkbmap"` + XKB_IN_USE=yes +fi + +# +# Eeek, this seems like too much magic here +# +if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then + if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then + xkbsymbols=`sed -n -e 's/^[ ]*XkbSymbols[ ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config /etc/X11/xorg.conf` + if [ -n "$xkbsymbols" ]; then + setxkbmap -symbols "$xkbsymbols" + XKB_IN_USE=yes + fi + fi +fi + +# xkb and xmodmap don't play nice together +if [ -z "$XKB_IN_USE" ]; then + if [ -f "$rh6sysmodmap" ]; then + xmodmap "$rh6sysmodmap" + fi + + if [ -f "$sysmodmap" ]; then + xmodmap "$sysmodmap" + fi + + if [ -f "$usermodmap" ]; then + xmodmap "$usermodmap" + fi +fi + +unset XKB_IN_USE + +# run all system xinitrc shell scripts. +if [ -d /etc/X11/xinit/xinitrc.d ]; then + for i in /etc/X11/xinit/xinitrc.d/* ; do + if [ -x "$i" ]; then + . "$i" + fi + done +fi + +exec /usr/bin/awesome diff --git a/x11-wm/awesome/files/awesome-xsession.patch b/x11-wm/awesome/files/awesome-xsession.patch new file mode 100644 index 0000000..5a17076 --- /dev/null +++ b/x11-wm/awesome/files/awesome-xsession.patch @@ -0,0 +1,9 @@ +--- awesome-3.5.2/awesome.desktop 2013-10-12 12:48:49.000000000 -0400 ++++ awesome.desktop 2014-03-29 23:24:01.137547594 -0400 +@@ -3,5 +3,5 @@ + Name=awesome + Comment=Highly configurable framework window manager + TryExec=awesome +-Exec=awesome ++Exec=/etc/X11/Sessions/awesome + Type=Application diff --git a/x11-wm/awesome/metadata.xml b/x11-wm/awesome/metadata.xml new file mode 100644 index 0000000..6798285 --- /dev/null +++ b/x11-wm/awesome/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>t@tomoyat1.com</email> + <name>Tomoya Tabuchi</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Gentoo Proxy Maintainers Project</name> + </maintainer> + <maintainer type="person"> + <email>maksbotan@gentoo.org</email> + <name>Maxim Koltsov</name> + </maintainer> + <upstream> + <remote-id type="github">awesomeWM/awesome</remote-id> + </upstream> +</pkgmetadata> |