Permalink
Browse files

Compile python code on gentoo install to ensure old files are removed…

… on uninstall
  • Loading branch information...
simoncadman committed Feb 2, 2014
1 parent 37ed41d commit 7c8fdbeacb9d32c47197312b4fcc06e364c6c2a7
Showing with 17 additions and 14 deletions.
  1. +1 −1 backend.py
  2. +1 −1 deleteaccount.py
  3. +1 −1 dynamicppd.py
  4. +1 −1 listcloudprinters.py
  5. +1 −1 listdrivefiles.py
  6. +8 −5 packages/gentoo/cupscloudprint.ebuild
  7. +1 −1 reportissues.py
  8. +1 −1 setupcloudprint.py
  9. +1 −1 submitjob.py
  10. +1 −1 upgrade.py
View
@@ -20,7 +20,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20140201 001005"
+ CCPVersion = "20140202 012936"
print "CUPS Cloud Print CUPS Backend Version " + CCPVersion
sys.exit(0)
View
@@ -21,7 +21,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20140201 001005"
+ CCPVersion = "20140202 012936"
print "CUPS Cloud Print Delete Account Script Version " + CCPVersion
sys.exit(0)
View
@@ -19,7 +19,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20140201 001005"
+ CCPVersion = "20140202 012936"
print "CUPS Cloud Print Dynamic PPD Generator Version " + CCPVersion
sys.exit(0)
View
@@ -28,7 +28,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20140201 001005"
+ CCPVersion = "20140202 012936"
print "CUPS Cloud Print Printer Lister Version " + CCPVersion
sys.exit(0)
View
@@ -21,7 +21,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20140201 001005"
+ CCPVersion = "20140202 012936"
print "CUPS Cloud Print Printer Drive Lister Version " + CCPVersion
sys.exit(0)
@@ -3,12 +3,13 @@
# $Header: $
EAPI="3"
-inherit git-2 eutils
+inherit git-2 python eutils
DESCRIPTION="Google Cloud Print"
HOMEPAGE="https://ccp.niftiestsoftware.com"
EGIT_REPO_URI="git://github.com/simoncadman/CUPS-Cloud-Print.git"
-EGIT_COMMIT="f7cdbf24b2298cccb6c0c7881a7b50461f7d7fe9"
+EGIT_COMMIT="7cd40ac8a9b5174c2235eaa2cfc0bd1a167816d7"
LICENSE="GPL-3"
+PYTHON_DEPEND="2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64 ~amd64-fbsd ~x86-fbsd"
IUSE=""
@@ -22,9 +23,11 @@ media-gfx/imagemagick[postscript,jpeg,png]"
S=${WORKDIR}/${P}
src_install() {
- einstall DESTDIR="${D}" install
+ einstall DESTDIR="${D}" install
+ cd "${D}"
+ $(PYTHON) -m compileall -q -f .
}
pkg_postinst() {
- /usr/share/cloudprint-cups/upgrade.py
-}
+ /usr/share/cloudprint-cups/upgrade.py
+}
View
@@ -19,7 +19,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20140201 001005"
+ CCPVersion = "20140202 012936"
print "CUPS Cloud Print Issue Reporting Script Version " + CCPVersion
sys.exit(0)
View
@@ -21,7 +21,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20140201 001005"
+ CCPVersion = "20140202 012936"
print "CUPS Cloud Print Setup Script Version " + CCPVersion
sys.exit(0)
View
@@ -29,7 +29,7 @@
if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
- CCPVersion = "20140201 001005"
+ CCPVersion = "20140202 012936"
print "CUPS Cloud Print Submit Job Version " + CCPVersion
sys.exit(0)
View
@@ -41,7 +41,7 @@
sys.stderr.write("If you are upgrading from version 20131013 or earlier you should be aware that the scripts have moved from /usr/lib/cloudprint-cups to /usr/share/cloudprint-cups\n")
# line below is replaced on commit
-CCPVersion = "20140201 001005"
+CCPVersion = "20140202 012936"
if len(sys.argv) == 2 and sys.argv[1] == 'version':
print "CUPS Cloud Print Upgrade Script Version " + CCPVersion

0 comments on commit 7c8fdbe

Please sign in to comment.