diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2012-10-20 11:24:41 +0000 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2012-10-20 11:24:41 +0000 |
commit | 7a68071720712c9bcd02ad4735b507415156b5ef (patch) | |
tree | 672a170f5b584ec984230142f587491799540f46 /x11-misc | |
parent | Automated addition of the new snapshot. (diff) | |
download | historical-7a68071720712c9bcd02ad4735b507415156b5ef.tar.gz historical-7a68071720712c9bcd02ad4735b507415156b5ef.tar.bz2 historical-7a68071720712c9bcd02ad4735b507415156b5ef.zip |
Initial commit wrt bug #436000
Package-Manager: portage-2.2.0_alpha141/cvs/Linux x86_64
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/magick-rotation/ChangeLog | 11 | ||||
-rw-r--r-- | x11-misc/magick-rotation/Manifest | 4 | ||||
-rw-r--r-- | x11-misc/magick-rotation/magick-rotation-1.6.2.ebuild | 91 | ||||
-rw-r--r-- | x11-misc/magick-rotation/metadata.xml | 15 |
4 files changed, 121 insertions, 0 deletions
diff --git a/x11-misc/magick-rotation/ChangeLog b/x11-misc/magick-rotation/ChangeLog new file mode 100644 index 000000000000..20227b197beb --- /dev/null +++ b/x11-misc/magick-rotation/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for x11-misc/magick-rotation +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/magick-rotation/ChangeLog,v 1.1 2012/10/20 11:24:36 pinkbyte Exp $ + +*magick-rotation-1.6.2 (20 Oct 2012) + + 20 Oct 2012; Sergey Popov <pinkbyte@gentoo.org> + +magick-rotation-1.6.2.ebuild, +metadata.xml: + Initial commit wrt bug #436000. Ebuild is written by Vadim Efimov. He will + maintain this package through proxy maintainers + diff --git a/x11-misc/magick-rotation/Manifest b/x11-misc/magick-rotation/Manifest new file mode 100644 index 000000000000..7c4b8004f7c9 --- /dev/null +++ b/x11-misc/magick-rotation/Manifest @@ -0,0 +1,4 @@ +DIST magick-rotation-1.6.2.tar.bz2 103389 SHA256 e0decb8ffb6bd5b8ffd0f01df345f23041abe78cda97fbe7065772260a1a2520 SHA512 40252c4b57d304244f8f7a8b08448cb498efd9044406235f2d728a89c8b4888009c4e7a9f50cbb61b5620336eedf1abb1591e68e94a57b051f4d823acbcdff5f WHIRLPOOL 3aeea34a2a7cbf966a7c0ea3bd13810e2a7a2015bc1f068566ce0515636bcb661e728af6682eea80b39624a3947a8219b9144a296f7c7fe9526d952d21cab49f +EBUILD magick-rotation-1.6.2.ebuild 2363 SHA256 d82251de52c5270bbbb5ac2eeefca289f7411ef945abd2871120f887829e8e4f SHA512 dfeb1da7d57edd819fbf71bbe7c3edbd314de0eae7009893e3bc315a5b3a6c5a3f73833b72833c05d43e4bd0e22742f17147e8c63fea640fd4b0fbdfa6e447ae WHIRLPOOL 6cce0659ae1ef347e66498cdb303f98cbaeab260952123618b204328853533979c31ac7962cd571770861dea10b3a439f4d035827ce6a456efe5e0cc46d218d5 +MISC ChangeLog 487 SHA256 770338b839addc8dca0408e01273e8823ff54d1026fefd4fc7bc5530d93d7757 SHA512 8239625b221c93c400f3eeab0005fbb4e5d3dfa7ddc2a986d6f3fa8dafdae15ff2aec76afe5e80caa4895d0383187d6f155c1e48bc23c96c8b552fad787ce864 WHIRLPOOL 581eba0a81a353bf9d1826a6c51df4b67fa9dca4e83e6d076e369d44c230f1435437766d8ed7934929fbbca6e366cfd6fc2ba78525e099a3b7a0b6ad7b1a0b9e +MISC metadata.xml 478 SHA256 80bfcaf0d1647e99eb55925a790279fc385df16148d25c8e4b8b1770593ca34d SHA512 197c1d0b0190c9af8a4d5b39cf46a4b42ec4df851b4bcc07abef2adf02196b452addef1cf2f12eec42b84742f9113727b754cefebf283887aeeb562cb5b9b9c1 WHIRLPOOL 7e18d32ff9b2316a14e40e12a21abc85c09042f55903fd64293477238a9bc8e9c3c7ec4fecc8da9c54f9cc6d1a52935960277676424fca5995c0e192d4665f4e diff --git a/x11-misc/magick-rotation/magick-rotation-1.6.2.ebuild b/x11-misc/magick-rotation/magick-rotation-1.6.2.ebuild new file mode 100644 index 000000000000..6b6397157d0e --- /dev/null +++ b/x11-misc/magick-rotation/magick-rotation-1.6.2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/magick-rotation/magick-rotation-1.6.2.ebuild,v 1.1 2012/10/20 11:24:36 pinkbyte Exp $ + +EAPI=4 + +PYTHON_DEPEND="2" + +inherit eutils python toolchain-funcs user versionator + +MY_PV=$(get_version_component_range 1-2) + +DESCRIPTION="application that rotate tablet pc's screen automatically, depending on orientation" +HOMEPAGE="https://launchpad.net/magick-rotation" +SRC_URI="http://launchpad.net/magick-rotation/trunk/${MY_PV}/+download/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" + +DEPEND="x11-libs/libXrandr + x11-libs/libX11" + +RDEPEND="${DEPEND} + dev-python/pygobject + dev-python/py-notify + x11-apps/xinput" + +pkg_setup() { + python_pkg_setup + enewgroup magick +} + +src_prepare() { + # Remove unneeded files + rm -r apt_* installer_gtk.py MAGICK-INSTALL gset_addkeyval.py MagickIcons/MagickSplash.png MagickUninstall || die 'removing unneeded files failed' +} + +src_compile() { + if use x86; then + $(tc-getCC) -lX11 -lXrandr check.c -o checkmagick32 || die 'compilation failed' + fi + if use amd64; then + $(tc-getCC) -lX11 -lXrandr check.c -o checkmagick64 || die 'compilation failed' + fi +} + +src_install() { + #TODO: add installation of GNOME Shell 3.2 extension + dobin checkmagick* + + insinto /lib/udev/rules.d + doins 62-magick.rules + + insinto /usr/share/${PN} + doins *.py + + insinto /usr/share/${PN}/MagickIcons + doins MagickIcons/*.png + + exeinto /usr/share/${PN} + doexe magick-rotation + doexe xrotate.py + + dodoc *.txt ChangeLog + + make_desktop_entry /usr/share/${PN}/${PN} "Magick Rotation" /usr/share/${PN}/MagickIcons/magick-rotation-enabled.png "System;Utility;" +} + +pkg_postinst() { + optfeature() { + elog " [\e[1m$(has_version ${1} && echo I || echo ' ')\e[0m] ${1} (${2})" + } + + python_mod_optimize /usr/share/${PN} + + elog + elog "In order to use Magick Rotation with an on-screen keyboard and handwriting," + elog "the following additional package may also be installed for use at run-time:" + elog + optfeature 'media-gfx/cellwriter' "Magick Rotation's default onscreen keyboard" + elog + + ewarn "in order to use Magick Rotation you have to be in the 'magick' group." + ewarn "Just run 'gpasswd -a <USER> magick', then have <USER> re-login." +} + +pkg_postrm() { + python_mod_cleanup /usr/share/${PN} +} diff --git a/x11-misc/magick-rotation/metadata.xml b/x11-misc/magick-rotation/metadata.xml new file mode 100644 index 000000000000..a8880559d4f2 --- /dev/null +++ b/x11-misc/magick-rotation/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>evadim@evadim.ru</email> + <name>Vadim Efimov</name> + <description>Maintainer. Assign bugs to him</description> + </maintainer> + <maintainer> + <email>pinkbyte@gentoo.org</email> + <name>Sergey Popov</name> + <description>Proxy maintainer. CC him on bugs</description> + </maintainer> +</pkgmetadata> |