summaryrefslogtreecommitdiff
path: root/app-cdr/plextor-tool
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-cdr/plextor-tool
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-cdr/plextor-tool')
-rw-r--r--app-cdr/plextor-tool/Manifest4
-rw-r--r--app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch61
-rw-r--r--app-cdr/plextor-tool/metadata.xml9
-rw-r--r--app-cdr/plextor-tool/plextor-tool-0.5.0.ebuild35
4 files changed, 109 insertions, 0 deletions
diff --git a/app-cdr/plextor-tool/Manifest b/app-cdr/plextor-tool/Manifest
new file mode 100644
index 000000000000..43e1c167a834
--- /dev/null
+++ b/app-cdr/plextor-tool/Manifest
@@ -0,0 +1,4 @@
+AUX plextor-tool-0.5.0-build.patch 2102 BLAKE2B a87425f879e7ee6f7d84df05405b14d2d39ed877a9104c0103ce3e01101a7ca1e7472ffadaf86c5c4b0fb45fcab956ab225fff9654dfb0173abebf243eb9cd75 SHA512 2422e53823b986d230c8fddc2fba52a3cd9c95433e20aecf6a20224fdf9516cb840b270d11bc4e18f1aa2d33cfc22c6687736db230f04b23e5c788e9abfe2ce5
+DIST plextor-tool-0.5.0.src.tar.bz2 51594 BLAKE2B 2a613b6cf338d75d257e4f3ef839ae7131fdf454617be846ec43aa4cce970369defc7e5009697628cb7c76e91c3f718c6f316e69285ec96aacfaa56e79e5e597 SHA512 a613c081bf01f387cd3b6b03b1c81e12a654e1e706ff96ad8aae9afe5e001b91627f95995fae838a5b47c83dd1d07bfefcb0c26d9bb981f4f72bbb3e2eaa8d75
+EBUILD plextor-tool-0.5.0.ebuild 796 BLAKE2B 4eb8c39f6826774710aa182f129ee083c7fa138ecccd8797b0950f5e624029f03fecc973ffafe8b3b62fdd4012b34034abcbcebf68770ab7d9eb1982b586067d SHA512 82f522ce6bbdfa0c08e1f5ddedf2dcbce3753193eb1adb1826c199ce0fe19bf6a28aac37cefb70f885e6a21610ac7d5423bb72a0ed663c4eb02ef62d8146983f
+MISC metadata.xml 374 BLAKE2B b89cba0d997655147351e195448d3a5abd908e5e34de90e0f2593782e4bf278eb500a8593744b014f6c759224589c48a9bbd9c98cbcf7651fc55ab45ce804b51 SHA512 5e9d28dc6e6450ef21f358158bd78ee07e4c6cef37e787a170f1e79206075de563450d65ceaa572f1e126c9af1450367ed5f62f1421a6fcff18ae3c0233e8c57
diff --git a/app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch b/app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch
new file mode 100644
index 000000000000..d2a181f14fed
--- /dev/null
+++ b/app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch
@@ -0,0 +1,61 @@
+--- Makefile
++++ Makefile
+@@ -2,17 +2,17 @@
+ # Copyright (c) 1999-2002 Georg Huettenegger
+ #
+
+-CC=gcc
+-INCLUDES=-Icommon/
++CC?=gcc
++CPPFLAGS+=-Icommon/
+
+ # defines to be set for release
+
+-DEFINES=-DUSE_GNOME
+-SCFLAGS=-Wall $(DEFINES) $(INCLUDES)
+-CFLAGS=`gnome-config --cflags applets` $(SCFLAGS)
+-LFLAGS=`gnome-config --libs applets`
++CPPFLAGS += -DUSE_GNOME
++CFLAGS += -Wall
++CFLAGS +=
++LFLAGS=$(LDFLAGS)
+ # the following line worked on RedHat 7.0/1/2
+-SLFLAGS=-L/usr/lib -L/usr/X11R6/lib -lpanel_applet -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
++#SLFLAGS=-L/usr/lib -L/usr/X11R6/lib -lpanel_applet -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
+ # the following line worked on RedHat 6.1
+ #SLFLAGS=-L/usr/lib -L/usr/X11R6/lib -lpanel_applet -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
+
+@@ -53,18 +53,16 @@
+ RM=rm
+ STRIP=strip
+
+-all: plextor-tool pt-static plextor-tool-applet pta-static plextor-tool.8.gz strip
++all: plextor-tool pt-static plextor-tool-applet pta-static plextor-tool.8
+
+-plextor-tool.8.gz: ../doc/plextor-tool.groff
++plextor-tool.8: ../doc/plextor-tool.groff
+ $(MANCC) $(MANCCFLAGS) ../doc/plextor-tool.groff > plextor-tool.8
+- $(RM) -f plextor-tool.8.gz
+- gzip plextor-tool.8
+
+ plextor-tool: $(COBJS)
+- $(CC) -o $@ $(COBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+ pt-static: $(COBJS)
+- $(CC) -static -o $@ $(COBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ $^
+
+ ls_mode_pages: $(LSMPOBJS)
+ $(CC) -o $@ $(LSMPOBJS)
+@@ -110,10 +108,8 @@
+
+ .SUFFIXES: .o .cpp
+ .cpp.o:
+- $(CXX) $(CXXFLAGS) -c -o $@ $<
+
+ .SUFFEXES: .o .c
+ .c.o:
+- $(CC) -c $(CFLAGS) -o $@ $<
+
+ include .depend
diff --git a/app-cdr/plextor-tool/metadata.xml b/app-cdr/plextor-tool/metadata.xml
new file mode 100644
index 000000000000..b104c5f6fbc0
--- /dev/null
+++ b/app-cdr/plextor-tool/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription>A console utility that can set certain parameters of Plextor/MMC cdrom and cd-rw drives.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">plextor-tool</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-cdr/plextor-tool/plextor-tool-0.5.0.ebuild b/app-cdr/plextor-tool/plextor-tool-0.5.0.ebuild
new file mode 100644
index 000000000000..39a125aaf854
--- /dev/null
+++ b/app-cdr/plextor-tool/plextor-tool-0.5.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Tool to change the parameters of a Plextor CD-ROM drive"
+HOMEPAGE="http://plextor-tool.sourceforge.net/"
+SRC_URI="mirror://sourceforge/plextor-tool/${P}.src.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static"
+
+S=${WORKDIR}/${PN}/src
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+ gunzip plextor-tool.8.gz || die
+}
+
+src_compile() {
+ local targets="plextor-tool"
+ use static && targets="${targets} pt-static"
+ echo ${targets} > my-make-targets
+ emake CC="$(tc-getCC)" ${targets}
+}
+
+src_install() {
+ local targets=$(<my-make-targets)
+ dodoc ../doc/{NEWS,README} TODO
+ dobin ${targets}
+ doman plextor-tool.8
+}