From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-cdr/plextor-tool/Manifest | 6 +++ .../files/plextor-tool-0.5.0-build.patch | 61 ++++++++++++++++++++++ app-cdr/plextor-tool/metadata.xml | 9 ++++ app-cdr/plextor-tool/plextor-tool-0.5.0.ebuild | 35 +++++++++++++ 4 files changed, 111 insertions(+) create mode 100644 app-cdr/plextor-tool/Manifest create mode 100644 app-cdr/plextor-tool/files/plextor-tool-0.5.0-build.patch create mode 100644 app-cdr/plextor-tool/metadata.xml create mode 100644 app-cdr/plextor-tool/plextor-tool-0.5.0.ebuild (limited to 'app-cdr/plextor-tool') diff --git a/app-cdr/plextor-tool/Manifest b/app-cdr/plextor-tool/Manifest new file mode 100644 index 000000000000..df9978c66165 --- /dev/null +++ b/app-cdr/plextor-tool/Manifest @@ -0,0 +1,6 @@ +AUX plextor-tool-0.5.0-build.patch 2102 SHA256 c9eac27e830f8ef2b8ca0fb489230162653297fc37fcd16882cbf491227c5bdf SHA512 2422e53823b986d230c8fddc2fba52a3cd9c95433e20aecf6a20224fdf9516cb840b270d11bc4e18f1aa2d33cfc22c6687736db230f04b23e5c788e9abfe2ce5 WHIRLPOOL 6036d32f4c0f36cce7a3ea2cb2b3e701e6dc68e1fc64811121dd108803acf328112f82dfda157d28cdc8d38b66b1b680efcbbab2c5bacda4041b884e41964875 +DIST plextor-tool-0.5.0.src.tar.bz2 51594 SHA256 a62787eb2a1f311b66a467777aa864a1e478a649895ba2708f8f46e85e5bd20a SHA512 a613c081bf01f387cd3b6b03b1c81e12a654e1e706ff96ad8aae9afe5e001b91627f95995fae838a5b47c83dd1d07bfefcb0c26d9bb981f4f72bbb3e2eaa8d75 WHIRLPOOL 4cb72cf2517fbc2d98476856abd6944112315970e9c2327f5df8275b68bf82afed7f3ca8faa9f90f380901363388c3f2d09b7a9745c9e0bea53aa46649381bc3 +EBUILD plextor-tool-0.5.0.ebuild 796 SHA256 a4d06bafd074fec07e8808e6b8c24b533de74bbc08c83b6e9414e6fb4bf62ba6 SHA512 82f522ce6bbdfa0c08e1f5ddedf2dcbce3753193eb1adb1826c199ce0fe19bf6a28aac37cefb70f885e6a21610ac7d5423bb72a0ed663c4eb02ef62d8146983f WHIRLPOOL e10b9736d7377c5bca8df6ac771d8d21202deb901bae6025f138b200aef499b7b1e9d6748b7f9832c19915a015375dda470df7d3785a287f8f8c09db634b2e78 +MISC ChangeLog 2511 SHA256 a0c0a6de7fb323e6844a663d266a47e4102a78fe2d38adaab534ce5dc1f39f6d SHA512 8560ea9e8e9b547db12a6ce5491d035f7e9f43fe454f2db289f1c775885a42e1e4f94e6214b638d11cbca8e6fc7f7ec0d6a84722b505e2c4f7d588b0890e221e WHIRLPOOL aabd6fc6c0fe55d6bcc7e17cb817ef71bbb10248e3ffad01c156ba1897a24d5a55bf823233b6d42721498e99888c0f9af8454f15e6b0b7cd979c80415bfabec8 +MISC ChangeLog-2015 1066 SHA256 065fea378248130db523415b425018fd0e7f19bb46d5736e8784de160be3f7ee SHA512 e201cb50c43012fb81d3c389fdf7d68860c8275372b2109beb60df59e03803b166ae8146272bf1eed1da156b4267e406dfa7b070c36cb6e583b9af46c98fb230 WHIRLPOOL bb2e88e4723c75f523e680f44068f13f8e5e79670b24b4790256a2dd9448aa48d6d85e330e7cdc024f6be114d2b7fa8d11b4a91b7a6abd9a64eb6fc5d776b050 +MISC metadata.xml 374 SHA256 18821f9b5b97fab0069534d02d2609b0480a49d6c8769caae96536b58ed1f2b8 SHA512 5e9d28dc6e6450ef21f358158bd78ee07e4c6cef37e787a170f1e79206075de563450d65ceaa572f1e126c9af1450367ed5f62f1421a6fcff18ae3c0233e8c57 WHIRLPOOL 02d55b79b512692f75c85f6df2624322fe5cc3d9bc871d410043a8b4be5eb6f455536ec51e314b09ac86bf2a8feb66a16eaa1c6d219c9df91e2182cd8972af16 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 @@ + + + + + A console utility that can set certain parameters of Plextor/MMC cdrom and cd-rw drives. + + plextor-tool + + 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=$(