diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-print/foo2zjs |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-print/foo2zjs')
-rw-r--r-- | net-print/foo2zjs/Manifest | 6 | ||||
-rw-r--r-- | net-print/foo2zjs/files/foo2zjs-udev.patch | 12 | ||||
-rw-r--r-- | net-print/foo2zjs/files/foo2zjs-usbbackend.patch | 12 | ||||
-rw-r--r-- | net-print/foo2zjs/foo2zjs-99999999.ebuild | 81 | ||||
-rw-r--r-- | net-print/foo2zjs/metadata.xml | 8 |
5 files changed, 119 insertions, 0 deletions
diff --git a/net-print/foo2zjs/Manifest b/net-print/foo2zjs/Manifest new file mode 100644 index 000000000000..f0464b41b5fc --- /dev/null +++ b/net-print/foo2zjs/Manifest @@ -0,0 +1,6 @@ +AUX foo2zjs-udev.patch 379 SHA256 8961b787e37daaec84d90a9e65a20782177f4483b80669f86e427de967035dfb SHA512 91810416934e0d92ca7717262bfed26fbf275b6193bc236566f2b7b6f34a1a38ab98f0b1a3e074b16f8e3822d67e3d4bf8b8e4562f3e6155090ae1dc82abb8f9 WHIRLPOOL 821d64bbe78ca0de790db03066e84fccf4a659d68e439a984d9446276b56d28802054b23d9132b5cb9d289809af88814a1fcedf50a52a9e4d906f7abb08ee6e9 +AUX foo2zjs-usbbackend.patch 479 SHA256 8cea95f51d82d7dde5883081b37014565a749074ef87c61ed8a446b916ca1297 SHA512 a37b3bc193a619992a2a0c24f947d96185919cab6f2cb61c0dcc76d942274ea2eb7c325bc960e05cf9ee8969ef17361ab45053a6932d601fe0f68ee19808395c WHIRLPOOL b7413e63bca2041bc233d202563f3a152c6be37a078a0444f4eb23a1c9e57a8db70da153171121a91c9f769c30570863418934a8aab2a26f04945cf1bcddec4e +EBUILD foo2zjs-99999999.ebuild 1787 SHA256 242fe28192a693b1a88b71bab470ba3c8d191b7571f9c2d457bc2c7b6df451c1 SHA512 fdc440397edd582b972b5d7c0ee86ae02dc4fc5dd3d77d9fdb74d3eb46631c207cf3be24d56f2851e92480062619d8be44afaad756b4e0d7827ea73c8375d831 WHIRLPOOL 923031b6e80b1a54c9bfb25581e1361138eab71a9fc9b3e95684509c2624d4722a15369de24872212f1819bd31082a7fa8d7b1a7de66be0cc6633da7061feb1e +MISC ChangeLog 2644 SHA256 432e9b0b2416196e2ae15eada63cbeec155356c348cb82c40ccc222a7a916239 SHA512 fd223cd9d98215e3af7d1a9f9a7b39f95c9495bf87dbc33051fa68a7d3204f1b0ee01c529e6ed5887c95581f6132480355e0c5ca991e4410b46b2b2851eb1355 WHIRLPOOL 2e0d5be04f0172ade3c1191b2e27aa6418ebc60b44aa9d34a61b60391e2abbea681b38d5bf015c910181800ead5253ab52e0af4eaa4a797c655d13ceaf570179 +MISC ChangeLog-2015 11278 SHA256 1ebd0fb4e528773f915be8488bc8aa75da3bd8d15ddb3739ba04a54f27835821 SHA512 baa1d600dfcd38bf3d14353e95cfba0447e6cf2739f8b2835f85cb0e19390ff50512a043f54e8fa1e36dc6102d3f8450411bc791535a3b967b9ac1dd09d1a287 WHIRLPOOL 871bae5c3059f289e26b8c82955672cddc0c7ab2e7586121b84ee6fe5692c028c29fe29e2418e81c7c727d3d626689e8ca22c7ee4f3a5ee64296ba0f0c2b941b +MISC metadata.xml 265 SHA256 5099fe6c23aa29f999abe0e1977dca1ae9bb00819d72a2604aa6186f057a63b3 SHA512 6546f5402491a7065802409af29815ec26d09fc6fe196be110860059a5af6511b01abfc8bb4c8dbe4954c90d2fb2c85fe9ffb221c0dadc90b302fb58369d2ba4 WHIRLPOOL 8cff516a131dae795628c7f89d4c2555dc83eca6cb0a93a96af768b07f44c97d28e08ae35793db0a3c8db7159fefa8dfd306a9d6318e7e53c792c89a01300191 diff --git a/net-print/foo2zjs/files/foo2zjs-udev.patch b/net-print/foo2zjs/files/foo2zjs-udev.patch new file mode 100644 index 000000000000..070383949a8d --- /dev/null +++ b/net-print/foo2zjs/files/foo2zjs-udev.patch @@ -0,0 +1,12 @@ +diff -ruN foo2zjs/Makefile foo2zjs.orig/Makefile +--- foo2zjs/Makefile 2012-01-18 21:53:45.834944820 +0100 ++++ foo2zjs.orig/Makefile 2012-01-18 21:51:18.872936603 +0100 +@@ -933,7 +933,7 @@ + echo " *** OR (generic linux)"; \ + echo " *** # rm -f $(LIBUDEVDIR)/*-printers.rules"; \ + echo " ***"; \ +- exit 1; \ ++ # exit 1; \ + fi + # ... OK! + # diff --git a/net-print/foo2zjs/files/foo2zjs-usbbackend.patch b/net-print/foo2zjs/files/foo2zjs-usbbackend.patch new file mode 100644 index 000000000000..b73c79be4e56 --- /dev/null +++ b/net-print/foo2zjs/files/foo2zjs-usbbackend.patch @@ -0,0 +1,12 @@ +diff -ruN foo2zjs.orig/hplj1000 foo2zjs/hplj1000 +--- foo2zjs.orig/hplj1000 2013-01-11 17:20:04.000000000 +0100 ++++ foo2zjs/hplj1000 2013-03-24 20:49:16.150065578 +0100 +@@ -42,7 +42,7 @@ + # Path to the USB CUPS backend. We use this backend to upload the firmware + # into the printer when we are on a CUPS/libusb-based system. + # +-USB_BACKEND=/usr/lib/cups/backend/usb ++USB_BACKEND=/usr/libexec/cups/backend/usb + + # + # Directory to find downloadable HP firmware files sihpMMMM.dl diff --git a/net-print/foo2zjs/foo2zjs-99999999.ebuild b/net-print/foo2zjs/foo2zjs-99999999.ebuild new file mode 100644 index 000000000000..d1309102958b --- /dev/null +++ b/net-print/foo2zjs/foo2zjs-99999999.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit toolchain-funcs eutils + +DESCRIPTION="Support for printing to ZjStream-based printers" +HOMEPAGE="http://foo2zjs.rkkda.com/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="test" + +RESTRICT="bindist" + +RDEPEND="net-print/cups + net-print/foomatic-db-engine + >=net-print/cups-filters-1.0.43-r1[foomatic] + virtual/udev" +DEPEND="${RDEPEND} + app-arch/unzip + app-editors/vim + net-misc/wget + sys-apps/ed + sys-devel/bc + test? ( sys-process/time )" + +S="${WORKDIR}/${PN}" + +src_unpack() { + einfo "Fetching ${PN} tarball" + wget "http://foo2zjs.rkkda.com/${PN}.tar.gz" || die + tar zxf "${WORKDIR}/${PN}.tar.gz" || die + + epatch "${FILESDIR}/${PN}-udev.patch"\ + "${FILESDIR}/${PN}-usbbackend.patch" + + cd "${S}" || die + + einfo "Fetching additional files (firmware, etc)" + emake getweb + + # Display wget output, downloading takes some time. + sed -e '/^WGETOPTS/s/-q//g' -i getweb || die + + ./getweb all || die +} + +src_prepare() { + # Prevent an access violation. + sed -e "s~/etc~${D}/etc~g" -i Makefile || die + sed -e "s~/etc~${D}/etc~g" -i hplj1000 || die + + # Prevent an access violation, do not create symlinks on live file system + # during installation. + sed -e 's/ install-filter / /g' -i Makefile || die + + # Prevent an access violation, do not remove files from live filesystem + # during make install + sed -e '/rm .*LIBUDEVDIR)\//d' -i Makefile || die + sed -e '/rm .*lib\/udev\/rules.d\//d' -i hplj1000 || die +} + +src_compile() { + MAKEOPTS=-j1 CC="$(tc-getCC)" default +} + +src_install() { + # ppd files are installed automagically. We have to create a directory + # for them. + dodir /usr/share/ppd + + emake DESTDIR="${D}" -j1 install install-hotplug +} + +src_test() { + # see bug 419787 + : ; +} diff --git a/net-print/foo2zjs/metadata.xml b/net-print/foo2zjs/metadata.xml new file mode 100644 index 000000000000..c213922d0b14 --- /dev/null +++ b/net-print/foo2zjs/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>printing@gentoo.org</email> + <name>Gentoo Printing Project</name> + </maintainer> +</pkgmetadata> |