summaryrefslogtreecommitdiff
path: root/app-editors/sandy
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-editors/sandy
reinit the tree, so we can have metadata
Diffstat (limited to 'app-editors/sandy')
-rw-r--r--app-editors/sandy/Manifest6
-rw-r--r--app-editors/sandy/files/sandy-0.4-gentoo.patch49
-rw-r--r--app-editors/sandy/metadata.xml7
-rw-r--r--app-editors/sandy/sandy-0.4.ebuild30
4 files changed, 92 insertions, 0 deletions
diff --git a/app-editors/sandy/Manifest b/app-editors/sandy/Manifest
new file mode 100644
index 000000000000..c0fe99eee3c7
--- /dev/null
+++ b/app-editors/sandy/Manifest
@@ -0,0 +1,6 @@
+AUX sandy-0.4-gentoo.patch 1019 SHA256 d9359cb18b51b454862fbc9210f520f16e5a4e9867c15942e2155478f6cd1caf SHA512 06e3e4dd2979e3589f9f1205eee13c56006ea4f2d8d8ead61faadebcdc9b590c82b645dc93b6ed6693cd15cd8d7e45491812fa3fb0819cfd088e5e231da7f7ab WHIRLPOOL f966a77f55d51b35b9f11750c1747a9c0308e4a2bb48eb1b361ec5919e6c43ed643c4216505f06ac38b22382be47766e1c171f6da89a6f98ddcd61477202770b
+DIST sandy-0.4.tar.bz2 18409 SHA256 cc549e70936424b65b012a664fe8959a5b3f345e3d5be3af9bd1ee9ea80a412b SHA512 6f28588e15ccdc467dd9d0de8b221508333defefe5866005d82292583db9f296284f233271af5e85b648c194dff117f94752cc364ed6c1409dae5c3af755b530 WHIRLPOOL 3944bbf11e7548e8675e5461c5c8686a6046854aa189a1bfa018a0eb14962c9d3601ab9b734c5516457bb402f98b7798825f3660b7a294323f64742eced49bfe
+EBUILD sandy-0.4.ebuild 677 SHA256 83359fa372731e928c4b164c40d7a45b36708b0078609fe6e4db41a381bd517a SHA512 75bcfd2498859e0090d1fa072be4576d707ac457d965d67101d8062b47ca450273813cd73f686095436e477e7872fc5d8d976ce16d074af142c9cfd8fe14c36b WHIRLPOOL da50444acc335d9f128cc15070002fad67bea76f42dd48e618a76159080ace7a667245ec820b6bf4ef1b021dcd39212a2b81c45b878887230b3fb79b3587de9c
+MISC ChangeLog 2200 SHA256 580d3aca861e7dc6b1799a98f4679367c59b0ef54dbed4f16d6264f9b959295f SHA512 f6a3e04121804f1ea1cd0c4c289627a33877beca90e7580049077a5bad7d13b50f49151f24f2055866005a6ba32e4b856dd31d742c9acf27091949364fcc00c2 WHIRLPOOL b29a7357956195fddad90e6e30bac6e9c200b237b5180f1ee8890f00a1ec511b2fbad6db0a1f315b1f963dfbcc5f822562026141079956e1146d467a833b7c11
+MISC ChangeLog-2015 363 SHA256 0669bf44fe712cde9afe2c4aa5f2dc542fb6fe2f108dc1043c927fb512bcc94b SHA512 1bc0c749b06af0f77e8b08eefde1081a443ae8815d33732ff2082898110af89cbe150fc40d87fe4ddb0f63feac58eca8aa1786cc8b4789edc26b7743d4fc6b4e WHIRLPOOL 19bc5595e3a0c74aa4257de2e0c25a265fec7d0b1f752d2f32441b20ed69dc1a399dd297f026f5b47280b41cb9a392a977bdb73c7b94528b584fe1aa4800c5d7
+MISC metadata.xml 210 SHA256 59333e331c55cfd39ab5a54817053590464e735d79003424078790bad0f03885 SHA512 f7cbe57a24b67a28696f91061ad8bd61d7d4cf3d59d20c3dcc6a4921e29672d00ecf3ece70a8813399d2467ebd626f8f829300e81fc722e9aaa527e213a5fb54 WHIRLPOOL 4720a4dc9840fd244dc5c4ce9695cdb0007a36c7b0262d4db8a8b0fec37fc718fd0c33f87c9ca0cfd5f5f09b6fe42f1cf93103a85de3f2c3d5dce10a82ef082d
diff --git a/app-editors/sandy/files/sandy-0.4-gentoo.patch b/app-editors/sandy/files/sandy-0.4-gentoo.patch
new file mode 100644
index 000000000000..877c96805ef4
--- /dev/null
+++ b/app-editors/sandy/files/sandy-0.4-gentoo.patch
@@ -0,0 +1,49 @@
+--- a/config.mk
++++ b/config.mk
+@@ -9,19 +9,19 @@
+
+ # includes and libs (ncurses)
+ INCS = -I. -I/usr/include
+-LIBS = -L/usr/lib -lc -lncursesw
++LIBS = $(shell ${PKG_CONFIG} --libs ncurses)
+
+ # flags
+-CPPFLAGS = -DVERSION=\"${VERSION}\"
++CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE
+ #CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
+ #LDFLAGS = -s ${LIBS}
+-CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
+-LDFLAGS = ${LIBS}
++CFLAGS += -std=c99 -pedantic -Wall ${INCS} ${CPPFLAGS}
++LDFLAGS += ${LIBS}
+
+ # Solaris
+ #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
+ #LDFLAGS = ${LIBS}
+
+ # compiler and linker
+-CC = cc
++CC ?= cc
+
+--- a/Makefile
++++ b/Makefile
+@@ -15,8 +15,7 @@
+ @echo "CC = ${CC}"
+
+ .c.o:
+- @echo CC $<
+- @${CC} -c ${CFLAGS} $<
++ ${CC} -c ${CFLAGS} $<
+
+ ${OBJ}: config.h config.mk
+
+@@ -25,8 +24,7 @@
+ @cp config.def.h $@
+
+ sandy: ${OBJ}
+- @echo CC -o $@
+- @${CC} -o $@ sandy.o ${LDFLAGS}
++ ${CC} ${CFLAGS} -o $@ sandy.o ${LDFLAGS}
+
+ clean:
+ @echo cleaning
diff --git a/app-editors/sandy/metadata.xml b/app-editors/sandy/metadata.xml
new file mode 100644
index 000000000000..5ba62861f1c4
--- /dev/null
+++ b/app-editors/sandy/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+<email>jer@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-editors/sandy/sandy-0.4.ebuild b/app-editors/sandy/sandy-0.4.ebuild
new file mode 100644
index 000000000000..47708c7ae369
--- /dev/null
+++ b/app-editors/sandy/sandy-0.4.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="an ncurses text editor with an easy-to-read, hackable C source"
+HOMEPAGE="https://tools.suckless.org/sandy"
+SRC_URI="https://git.suckless.org/${PN}/snapshot/${P}.tar.bz2"
+
+LICENSE="MIT-with-advertising"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="sys-libs/ncurses"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.4-gentoo.patch
+}
+
+src_compile() {
+ tc-export CC PKG_CONFIG
+ append-cflags -D_DEFAULT_SOURCE
+ emake PREFIX=/usr ${PN}
+}
+
+src_install() {
+ emake PREFIX=/usr DESTDIR="${D}" install
+}