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-misc/xnots/Manifest | 8 ++++ x11-misc/xnots/files/xnots-0.2.1-gcc6.patch | 46 ++++++++++++++++++++++ x11-misc/xnots/metadata.xml | 12 ++++++ x11-misc/xnots/xnots-0.2.1-r1.ebuild | 53 ++++++++++++++++++++++++++ x11-misc/xnots/xnots-0.2.1-r2.ebuild | 59 +++++++++++++++++++++++++++++ x11-misc/xnots/xnots-9999.ebuild | 55 +++++++++++++++++++++++++++ 6 files changed, 233 insertions(+) create mode 100644 x11-misc/xnots/Manifest create mode 100644 x11-misc/xnots/files/xnots-0.2.1-gcc6.patch create mode 100644 x11-misc/xnots/metadata.xml create mode 100644 x11-misc/xnots/xnots-0.2.1-r1.ebuild create mode 100644 x11-misc/xnots/xnots-0.2.1-r2.ebuild create mode 100644 x11-misc/xnots/xnots-9999.ebuild (limited to 'x11-misc/xnots') diff --git a/x11-misc/xnots/Manifest b/x11-misc/xnots/Manifest new file mode 100644 index 000000000000..8774165c3f06 --- /dev/null +++ b/x11-misc/xnots/Manifest @@ -0,0 +1,8 @@ +AUX xnots-0.2.1-gcc6.patch 1341 SHA256 1b6e08502487ec773cc6880fcb6cadb2e9ea796848210294d26ac3a0b9afbf21 SHA512 3d7e976f93e1a67234bcaa55dfbfe980e9e5ba95f2d8c43c29ce9ef003bf93f7924218cee45892292f11db6e6af51879e37f4aeb4a20f946fb0c73dd8d95ded7 WHIRLPOOL 280234baa176814c40d0dc2c9db954861e3ae668e463e530dfebe5025011f88e23afe6835601d660e9ba8c43941ae0f0134a31a62738c300087618ab3d12e04e +DIST xnots-0.2.1.tar.gz 41442 SHA256 80bbab0334880f79aa12cf17ebffc5730a85dc537e8e6208169720656ecd72ca SHA512 bb1a334150aac932839c8d9e04d8c9f1c419f5221a218fbbe3523060fbb8d62e616f89ec06a8237fa290de37db103e98a560953ef820ef016f35dd5c844eb65c WHIRLPOOL 1ed783f7167fd8836bf939ec09eabc7e25a229e6f95c3d3f5e52975dc97e2b94064d48f5a8b03ec6d55121292ff661283943e0c2b562965b7bf74068232a70b7 +EBUILD xnots-0.2.1-r1.ebuild 990 SHA256 27884a7bb5135ac69adf12e34b07b2a3059dc8c64c38435fd491f30ec7247bc7 SHA512 a58f070c30634ef0b3fc69be8169473e08754aff16f36385ab061878658479f1ebd9beb7db85ff452d74f9cf21ae22f313c529d6f39a2f607c434e5accf51a4b WHIRLPOOL b9f1960f4a66a0f7caa540927cbd9934774228a9f1f1c97001882509f24b7dec0dc1492abb6ceb8a4b017a5c61ca83f2b632aea37d6371cce8058cce2742418d +EBUILD xnots-0.2.1-r2.ebuild 1053 SHA256 e7f7869581b0952285a19942991b53925bcabae91a0ba36401d1fb717d6faf6c SHA512 ece90ba2e795ba8ee57121e889a55b1fecd4b3ff1574ecc0f5f98fbe509d613c8e2f0fa2327e68416e620294caea25a0f129c920e6f681c64f4209bf44cc2ba8 WHIRLPOOL 74f67aedfb0bf491db075850f058a6d27b825f25739b044e62d04e560d37ff302af40b9a3de6e3a609ba129a11807cc3d4638e96d7ef9daa9da41bdc75276a21 +EBUILD xnots-9999.ebuild 993 SHA256 cbd7635ce2ed5dba4e261cebfeb83c80a6d27a601fbfaaa547ac14be4565c761 SHA512 ab2fd8880e59ff5ec8dcb31348c80da1d4a38d409e547b42b81c700348a90fa9d521e483d785d2b6ffd93d268592430c59555260e892cfd29130c50f40d194f6 WHIRLPOOL 9465fc6f3402df8007f8d8155d1055d0a23c2920dedf895b1cadd832414b23bcf99cd381b6209dddc638dbfe2867776dfbf0fa256c5c0513fd750ab5f91653ee +MISC ChangeLog 2905 SHA256 a8f6a3f07e5a399067736f34d5692af7eee993817a07f36ff182f8ccbddf5ced SHA512 27a0f132f9e3026a45742821b1f2fc35f1cba5888ff3c0ca9c6bbfabb229401cda8f7a06ab600af7754bfee84179ca6ed960553aaf0943b04b913bc1d9b2db75 WHIRLPOOL e20c0de8b8feea04527f2eb337824a17553598f4562c3b07287606a7c64cf6fec1803906a25c64f06b5c3a2a117118c9d68b3c9715653ba1bedd1dff9e038063 +MISC ChangeLog-2015 2074 SHA256 918d3b007c32180fd1ccaf6c7bcb3e0b767378570504368e9c0c2822cdb0b28f SHA512 890716d1b7a5962bcc60d3ee05b68488757ac6f141947d9dad0b262a0cec957a400c03ceb57ca9a0635b3204fd93ecd116679b6351287b31e0b3229229870c56 WHIRLPOOL 8a11021295dd6337639be681127e54eeefde9648051d752001ac86d8638227b76d40043f920852456ebe96be2d98ea5fc6bd1462a6f621de4ab33681debf254c +MISC metadata.xml 410 SHA256 305464fd03a4e6b6b2098076025aedd3b1bcab42b2e7f7c67898bc64d54632eb SHA512 fc75f0e956d59b3231440882242a1c9ef59f3e694c3c0ed16673cdb99aa92b58d94679d6b3385c373e8aa7bbf7b1ced73ed50ca26be76ebf54a72341c284bdbf WHIRLPOOL f600ca6f5cea077db88eee61dd5a0b1fcc3061fa35b6cdbda83f4143d4b2c90e5685cdcb997c6744fd2b4f11d36688ef5ca78a4123dc7bbe2f4e9f0b71e15a7a diff --git a/x11-misc/xnots/files/xnots-0.2.1-gcc6.patch b/x11-misc/xnots/files/xnots-0.2.1-gcc6.patch new file mode 100644 index 000000000000..df65f009cdb7 --- /dev/null +++ b/x11-misc/xnots/files/xnots-0.2.1-gcc6.patch @@ -0,0 +1,46 @@ +diff --git a/src/Makefile b/src/Makefile +index 4f8aaf1..7b527a6 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -28,7 +28,7 @@ else + CFLAGS += -DDEBUG_LEVEL=1 -g + endif + +-CFLAGS += -fno-strict-aliasing ++CFLAGS += -fno-strict-aliasing -fgnu89-inline + CFLAGS += -DVERSION=\"$(VERSION)\" -Wall + CFLAGS += $(shell pkg-config $(PKGS) --cflags) + LDLIBS += $(shell pkg-config $(PKGS) --libs) +diff --git a/src/main.c b/src/main.c +index aef54d6..f1571f3 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -228,7 +228,6 @@ processOptions( int argc, char **argv ) + char text[1024]; + unsigned long flags, flagsMask; + char *options[NOPTIONS]; +- int nbytes; + + int i; + +@@ -295,7 +294,7 @@ OPTIONS\n\ + for( i=0; i < NOPTIONS; i++) + options[i] = NULL; + +- nbytes = readOptionsFromFile( options, &flags, &flagsMask, text, 1024, ++ readOptionsFromFile( options, &flags, &flagsMask, text, 1024, + config_file); + + /* Initialize the global xnots_t structure. */ +diff --git a/src/xnots.h b/src/xnots.h +index 52316fe..6b9f577 100644 +--- a/src/xnots.h ++++ b/src/xnots.h +@@ -330,6 +330,7 @@ void correctNoteGeometry ( Note *note, + unsigned height + ); + void correctNoteHeight ( Note *note ); ++extern + inline void resetNoteWidth ( Note *note ); + void freeNote ( Note *note ); + void showNotes (); diff --git a/x11-misc/xnots/metadata.xml b/x11-misc/xnots/metadata.xml new file mode 100644 index 000000000000..230858f0c0fd --- /dev/null +++ b/x11-misc/xnots/metadata.xml @@ -0,0 +1,12 @@ + + + + + desktop-misc@gentoo.org + Gentoo Desktop Miscellaneous Project + + + xnots + thePalindrome/xnots + + diff --git a/x11-misc/xnots/xnots-0.2.1-r1.ebuild b/x11-misc/xnots/xnots-0.2.1-r1.ebuild new file mode 100644 index 000000000000..0438e287b2d9 --- /dev/null +++ b/x11-misc/xnots/xnots-0.2.1-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="A desktop sticky note program for the unix geek" +HOMEPAGE="http://xnots.sourceforge.net https://github.com/thePalindrome/xnots" +SRC_URI="mirror://sourceforge/xnots/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="vim-syntax" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/pango[X] +" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig + x11-proto/randrproto + x11-proto/renderproto + x11-proto/xextproto +" + +src_prepare() { + sed -i -e 's|LICENCE||g' Makefile || die + + append-cflags -std=gnu89 +} + +src_compile() { + emake CC="$(tc-getCC)" NO_DEBUG=1 +} + +src_install() { + emake \ + DESTDIR="${D}" \ + docdir=/usr/share/doc/${PF} \ + mandir=/usr/share/man \ + prefix=/usr \ + install + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins etc/xnots.vim + fi +} diff --git a/x11-misc/xnots/xnots-0.2.1-r2.ebuild b/x11-misc/xnots/xnots-0.2.1-r2.ebuild new file mode 100644 index 000000000000..15752d347787 --- /dev/null +++ b/x11-misc/xnots/xnots-0.2.1-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="A desktop sticky note program for the unix geek" +HOMEPAGE="http://xnots.sourceforge.net https://github.com/thePalindrome/xnots" +SRC_URI="mirror://sourceforge/xnots/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="vim-syntax" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/pango[X] +" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig + x11-proto/randrproto + x11-proto/renderproto + x11-proto/xextproto +" +PATCHES=( + "${FILESDIR}"/${PN}-0.2.1-gcc6.patch +) + +src_prepare() { + default + + sed -i -e 's|LICENCE||g' Makefile || die + + append-cflags -std=gnu89 +} + +src_compile() { + emake CC="$(tc-getCC)" NO_DEBUG=1 +} + +src_install() { + emake \ + DESTDIR="${D}" \ + docdir=/usr/share/doc/${PF} \ + mandir=/usr/share/man \ + prefix=/usr \ + install + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins etc/xnots.vim + fi +} diff --git a/x11-misc/xnots/xnots-9999.ebuild b/x11-misc/xnots/xnots-9999.ebuild new file mode 100644 index 000000000000..4574a53d43aa --- /dev/null +++ b/x11-misc/xnots/xnots-9999.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit flag-o-matic git-r3 toolchain-funcs + +DESCRIPTION="A desktop sticky note program for the unix geek" +HOMEPAGE="http://xnots.sourceforge.net https://github.com/thePalindrome/xnots" +EGIT_REPO_URI="https://github.com/thePalindrome/xnots" + +LICENSE="GPL-2" +SLOT="0" +IUSE="vim-syntax" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/pango[X] +" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig + x11-proto/randrproto + x11-proto/renderproto + x11-proto/xextproto +" + +src_prepare() { + default + + sed -i -e 's|LICENCE||g' Makefile || die + + append-cflags -std=gnu89 +} + +src_compile() { + emake CC="$(tc-getCC)" NO_DEBUG=1 +} + +src_install() { + emake \ + DESTDIR="${D}" \ + docdir=/usr/share/doc/${PF} \ + mandir=/usr/share/man \ + prefix=/usr \ + install + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins etc/xnots.vim + fi +} -- cgit v1.2.3