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 --- x11-plugins/wmlaptop/Manifest | 10 +++++ .../wmlaptop/files/wmlaptop-ACPI-detection.patch | 24 ++++++++++++ x11-plugins/wmlaptop/files/wmlaptop-Makefile.patch | 32 +++++++++++++++ x11-plugins/wmlaptop/files/wmlaptop.desktop | 8 ++++ x11-plugins/wmlaptop/metadata.xml | 9 +++++ x11-plugins/wmlaptop/wmlaptop-1.3.ebuild | 45 ++++++++++++++++++++++ x11-plugins/wmlaptop/wmlaptop-1.4.ebuild | 45 ++++++++++++++++++++++ 7 files changed, 173 insertions(+) create mode 100644 x11-plugins/wmlaptop/Manifest create mode 100644 x11-plugins/wmlaptop/files/wmlaptop-ACPI-detection.patch create mode 100644 x11-plugins/wmlaptop/files/wmlaptop-Makefile.patch create mode 100644 x11-plugins/wmlaptop/files/wmlaptop.desktop create mode 100644 x11-plugins/wmlaptop/metadata.xml create mode 100644 x11-plugins/wmlaptop/wmlaptop-1.3.ebuild create mode 100644 x11-plugins/wmlaptop/wmlaptop-1.4.ebuild (limited to 'x11-plugins/wmlaptop') diff --git a/x11-plugins/wmlaptop/Manifest b/x11-plugins/wmlaptop/Manifest new file mode 100644 index 000000000000..8779475eb5b5 --- /dev/null +++ b/x11-plugins/wmlaptop/Manifest @@ -0,0 +1,10 @@ +AUX wmlaptop-ACPI-detection.patch 983 SHA256 0c9649eed33a41927678e8571f7d2e8a86dd1d55c8a2a2c6ec2bd3785f3d579f SHA512 7dc6704fb5d6ae6f4576f6acbf2d7b9a1c1bc310f3617277f0b254bd96e962242c72489a2dbffba81f6d9dfb3d1d84b8c4ec44fac381f7b5078345a010474c18 WHIRLPOOL 0b4c74e8c6bd654302f9b4000ec4b10bbde0789b102659298975ba9cd189dabe038718169ab535302155f6d32cdcf384f5e96851b65feda0a14defbd53f6f52d +AUX wmlaptop-Makefile.patch 738 SHA256 dead8f9796030e67002d45c55ed8b2f9fba57871e6f01c2cbd81cb0d97451460 SHA512 cb0bf56ae9040655979003ec8430c775bc4059c7416c386a761145aed7a62026ac39f4af4a72964cb42df95e441d236ab77fd931c7e10ebe1bf815631716481f WHIRLPOOL b24516b3e9acc06a8ff1c5738554fe7070931ebb6abc680b9fad77ea2f203a7b3245ea82eb3c642612d009dbc628438c48dd7e82f4950e03fd684730442100c9 +AUX wmlaptop.desktop 158 SHA256 daad2b82c39126e384dc182e43c56a5e82b3486f2e76889a95f0fd5f1abe274a SHA512 8a5e58a8419a3d6ec46164a57cd3af2b62fe0e5ad66b60a62bc9b5ec417b5869e60be6793e480ae6f8c9f4053b8aa3ca027ee8f64c4f45a627e3c761779a6c9e WHIRLPOOL ffa011476a141755b1a874dd97ce4e0d25a0e49cf241273d48b8443ffa15e2b52e5a682b9fb81e6586b777f2b1e8acf9c2e29a4ac32493064809ae42dc9ab93c +DIST wmlaptop-1.3.tar.bz2 54575 SHA256 5ce0ad86ebbf1e8167d0e7eb020389393cf08bd3c849dba9fce383d95a55281f SHA512 3653b49b0da5165f86fd6b681a021082f188ec66ef536ac31b72b2f04801a50466f5eacb706aca311cc02e046048a1adc29c55effd1e4ad5c5cdb6c6a85933de WHIRLPOOL 0a0c7f92b46c247e89a2b4dd332704eaa752aab4c784f5f2ec6fca6c7d11dfb2ed9b359871f5ce05ef6e1a2736381f73244df231171529022ea1bd31ae94f911 +DIST wmlaptop-1.4.tar.gz 77023 SHA256 3a6a2900489555606e2dd411963c659edb43613877de85c67dab14f0c8a47c2c SHA512 6f9ef6a04e556c811b2470ba9c1a57cde0047e8ac4936b84f5313f0f05a8809ac441e9a8e871fbb93dd29ae1deb9044ba7a16847e9c16ad80fdbda21e1a6ac58 WHIRLPOOL fd0e68985acf3db2576862518ff8b25710bb6c5be2fb5b0b2abd4fdaa56de08dd62c9cb77f996784310692c0647d34083ca56059ab312b01fbff1d0453a24512 +EBUILD wmlaptop-1.3.ebuild 905 SHA256 ebfda7373bbb6e71dc94fb23e24e6af674ce4956caf90ddecff9c3538bf428dc SHA512 2902f0403376fd0580aa2bc05c6c825e55b13d0cbfdb5f8c54fae3cbf79c8880aa0748f9b5a4ab8ed1c2fe877959212f10cbe867edb532cc722d683996bac403 WHIRLPOOL 88abdf75c389fc099e44db9962e0917f2d8c017c348df4e4c3959f85c744c5ba2d7665d5d57ac5d8de4f3e8b843bbe2d9b05bb4ebb7ccfbbe2617eefb9569828 +EBUILD wmlaptop-1.4.ebuild 905 SHA256 731861e6e3c58d524a4d2c77114b992ed083e613e5f40fdfbe609c4f67f9486c SHA512 66cd14d1bf9705f8b8e254787d00023e2e38d0ccce8d1d6cb196bebf8299d9fad7ae0b75fe111cc908fba5caf6ecde7a32cc3a903c86fd5214e0128c0ec42b86 WHIRLPOOL a0995a7ba52edb1bd53d66d60c0acdcb8f60db1230a545ad866c53ac93aa25b205c2fc2a3f2c6eb3c9b3b1295eb8e0090573545d6d71930f24d6c64a74459390 +MISC ChangeLog 3036 SHA256 2e994f1fb09360d91311fb45900f38edf9ab2595caff85ec0559396448bbafdb SHA512 ba6b615f4d9630851fa3d72546f783a895a88d7aa4ea8731dc8e069c2f93ba339d8df15ad2a9462dfa315cb45409c2347e52f6c8da12faa42ef242d4167b3731 WHIRLPOOL 6769cee1e386c14f0a9ed212f67905e657e032b7f5b5995c475c8ba69652e1a0e98cc34515f171ca492eee160ea2cab30d4cae350320a11237aec93ebb452bfc +MISC ChangeLog-2015 2014 SHA256 deeafbd17a7833e7ce7cd7b155c9c88aa156978599823c39ffdd6e1ef3ae9705 SHA512 c19a7a3eea37677262fb237c0179dc2730700081fc1242981331333576b87aca29d39edb2197287d2b59281250fbde63938876ad7441123a0bd012a5c26bbbd4 WHIRLPOOL f10077e2c862d3ed37cf2ad65e5bfb3ed09238188fa964736d6045d9001c5ff85fe2dfeb30bd4d06790a6edcd70ddb29bf2ab1e153869dd04c1824524c606b9f +MISC metadata.xml 249 SHA256 ab0de85cc2ebef9f9bca3773395bc5c909312efb834a8b3948806c1b00dee4e5 SHA512 1a1312bb0e9f74f1e3852218d8fd4817fbad3bc65633cecbe8735607bc33c1e05b414c2628ff3f6e24dfc4a3999de7191f6cdadd2161b03cf614d5b6f24fab8d WHIRLPOOL 3d7026fc5a045f5c90505dab413fe4534364d8c9a47c053ffbfaf3579478e55f77427eb00b05bd4c593a372c69eefae5ca93a2bab9398f52d20d374c2265fb2d diff --git a/x11-plugins/wmlaptop/files/wmlaptop-ACPI-detection.patch b/x11-plugins/wmlaptop/files/wmlaptop-ACPI-detection.patch new file mode 100644 index 000000000000..802e6f09a755 --- /dev/null +++ b/x11-plugins/wmlaptop/files/wmlaptop-ACPI-detection.patch @@ -0,0 +1,24 @@ +diff -ru wmlaptop-1.4.orig/src/battery.c wmlaptop-1.4/src/battery.c +--- wmlaptop-1.4.orig/src/battery.c 2010-11-26 14:26:27.594108155 -0600 ++++ wmlaptop-1.4/src/battery.c 2010-11-26 14:26:51.324108155 -0600 +@@ -74,7 +74,7 @@ + + bool ACPI_canSupport( ) + { +- if( access( ACPI_ACCESS_TEST, R_OK ) == SUCCESS ) ++ if( access( ACPI_ACCESS_TEST, R_OK | X_OK ) == SUCCESS ) + return true; + return false; + } +diff -ru wmlaptop-1.4.orig/src/battery.h wmlaptop-1.4/src/battery.h +--- wmlaptop-1.4.orig/src/battery.h 2010-11-26 14:26:27.594108155 -0600 ++++ wmlaptop-1.4/src/battery.h 2010-11-26 14:26:56.100774821 -0600 +@@ -24,7 +24,7 @@ + /******************* + * ACPI FEATURES * + *********************************************************************************/ +-#define ACPI_ACCESS_TEST "/proc/acpi/info" ++#define ACPI_ACCESS_TEST "/proc/acpi" + #define ACPI_BATTERY_DIR "/proc/acpi/battery" + //TODO #define ACPI_BATTERY_DIR "/home/mtc/hisBattery/battery" + diff --git a/x11-plugins/wmlaptop/files/wmlaptop-Makefile.patch b/x11-plugins/wmlaptop/files/wmlaptop-Makefile.patch new file mode 100644 index 000000000000..ab1148ce117e --- /dev/null +++ b/x11-plugins/wmlaptop/files/wmlaptop-Makefile.patch @@ -0,0 +1,32 @@ +--- /Makefile 2010-09-09 13:44:07.000000000 +0200 ++++ /Makefile.new 2010-09-09 13:47:40.000000000 +0200 +@@ -1,14 +1,17 @@ +- ++LIBDIR = -L/usr/X11R6/lib ++LIBS = -lXpm -lXext -lX11 ++OBJS = main.o init.o event.o draw.o battery.o cpu.o autoscript.o pixmap.o ++EXE = wmlaptop + + + .c.o: +- $(CC) -c $< -o $*.o $(CFLAGS) ++ $(CC) $(CFLAGS) -c $< -o $*.o + + all: $(EXE) + + $(EXE): $(OBJS) + ./buildCounter +- $(CC) -o $(EXE) $^ $(LIBDIR) $(LIBS) ++ $(CC) $(LDFLAGS) -o $(EXE) $^ $(LIBDIR) $(LIBS) + + + clean: +@@ -20,7 +23,7 @@ + reall: clean all + + install: +- /usr/bin/install -c -o 0 -g 0 -s -m 755 $(EXE) $(INSTALLDIR)/$(EXE) ++ /usr/bin/install -c -o 0 -g 0 -m 755 $(EXE) $(INSTALLDIR)/$(EXE) + chmod +s $(INSTALLDIR)/$(EXE) + + uninstall: diff --git a/x11-plugins/wmlaptop/files/wmlaptop.desktop b/x11-plugins/wmlaptop/files/wmlaptop.desktop new file mode 100644 index 000000000000..39c8229953fb --- /dev/null +++ b/x11-plugins/wmlaptop/files/wmlaptop.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=WmLaptop +Comment=Laptop Monitor +Comment[pl]=Monitor Dla Laptopa +Exec=wmlaptop +Type=Application +Terminal=false +Categories=System;Monitor; diff --git a/x11-plugins/wmlaptop/metadata.xml b/x11-plugins/wmlaptop/metadata.xml new file mode 100644 index 000000000000..1d5e6504004e --- /dev/null +++ b/x11-plugins/wmlaptop/metadata.xml @@ -0,0 +1,9 @@ + + + + + voyageur@gentoo.org + Bernard Cafarelli + + + diff --git a/x11-plugins/wmlaptop/wmlaptop-1.3.ebuild b/x11-plugins/wmlaptop/wmlaptop-1.3.ebuild new file mode 100644 index 000000000000..e8517da66a09 --- /dev/null +++ b/x11-plugins/wmlaptop/wmlaptop-1.3.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils + +IUSE="" + +MY_P="${P}" +S="${WORKDIR}/${MY_P}/src" + +DESCRIPTION="Dockapp for laptop users" +SRC_URI="http://dockapps.windowmaker.org/download.php/id/474/${P}.tar.bz2" +HOMEPAGE="http://dockapps.windowmaker.org/file.php/id/227" + +RDEPEND="x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm" +DEPEND="${RDEPEND} + x11-proto/xextproto + >=sys-apps/sed-4.1.5-r1" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc x86" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-Makefile.patch + epatch "${FILESDIR}"/${PN}-ACPI-detection.patch +} + +src_compile() { + emake || die "Compilation failed" +} + +src_install() { + dodir /usr/bin + einstall INSTALLDIR="${D}/usr/bin" || die "Installation failed" + + dodoc ../AUTHORS ../README ../README.IT ../THANKS + + domenu "${FILESDIR}/${PN}.desktop" +} diff --git a/x11-plugins/wmlaptop/wmlaptop-1.4.ebuild b/x11-plugins/wmlaptop/wmlaptop-1.4.ebuild new file mode 100644 index 000000000000..5de91232ce7e --- /dev/null +++ b/x11-plugins/wmlaptop/wmlaptop-1.4.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils + +IUSE="" + +MY_P="${P}" +S="${WORKDIR}/${MY_P}/src" + +DESCRIPTION="Dockapp for laptop users" +SRC_URI="http://dockapps.windowmaker.org/download.php/id/509/${P}.tar.gz" +HOMEPAGE="http://dockapps.windowmaker.org/file.php/id/227" + +RDEPEND="x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm" +DEPEND="${RDEPEND} + x11-proto/xextproto + >=sys-apps/sed-4.1.5-r1" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PN}-Makefile.patch + epatch "${FILESDIR}"/${PN}-ACPI-detection.patch +} + +src_compile() { + emake || die "Compilation failed" +} + +src_install() { + dodir /usr/bin + einstall INSTALLDIR="${D}/usr/bin" || die "Installation failed" + + dodoc ../AUTHORS ../README ../README.IT ../THANKS + + domenu "${FILESDIR}/${PN}.desktop" +} -- cgit v1.2.3