diff options
author | Jeroen Roovers <jer@gentoo.org> | 2015-05-28 17:33:51 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2015-05-28 17:33:51 +0000 |
commit | b2b0f04fa30dde83eb339c49f6761761a1c3bd3e (patch) | |
tree | 9449a55682ac553987ae43c6f637fdffe41a8902 /app-editors | |
parent | Stable for PPC64 (bug #550032). (diff) | |
download | gentoo-2-b2b0f04fa30dde83eb339c49f6761761a1c3bd3e.tar.gz gentoo-2-b2b0f04fa30dde83eb339c49f6761761a1c3bd3e.tar.bz2 gentoo-2-b2b0f04fa30dde83eb339c49f6761761a1c3bd3e.zip |
Initial commit.
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/sandy/ChangeLog | 10 | ||||
-rw-r--r-- | app-editors/sandy/Manifest | 5 | ||||
-rw-r--r-- | app-editors/sandy/files/sandy-0.4-gentoo.patch | 49 | ||||
-rw-r--r-- | app-editors/sandy/metadata.xml | 7 | ||||
-rw-r--r-- | app-editors/sandy/sandy-0.4.ebuild | 31 |
5 files changed, 102 insertions, 0 deletions
diff --git a/app-editors/sandy/ChangeLog b/app-editors/sandy/ChangeLog new file mode 100644 index 000000000000..e912a7fe9d90 --- /dev/null +++ b/app-editors/sandy/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-editors/sandy +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-editors/sandy/ChangeLog,v 1.1 2015/05/28 17:33:51 jer Exp $ + +*sandy-0.4 (28 May 2015) + + 28 May 2015; Jeroen Roovers <jer@gentoo.org> +sandy-0.4.ebuild, + +files/sandy-0.4-gentoo.patch, +metadata.xml: + Initial commit. + diff --git a/app-editors/sandy/Manifest b/app-editors/sandy/Manifest new file mode 100644 index 000000000000..2bb15bef918b --- /dev/null +++ b/app-editors/sandy/Manifest @@ -0,0 +1,5 @@ +AUX sandy-0.4-gentoo.patch 1019 SHA256 d9359cb18b51b454862fbc9210f520f16e5a4e9867c15942e2155478f6cd1caf SHA512 06e3e4dd2979e3589f9f1205eee13c56006ea4f2d8d8ead61faadebcdc9b590c82b645dc93b6ed6693cd15cd8d7e45491812fa3fb0819cfd088e5e231da7f7ab WHIRLPOOL f966a77f55d51b35b9f11750c1747a9c0308e4a2bb48eb1b361ec5919e6c43ed643c4216505f06ac38b22382be47766e1c171f6da89a6f98ddcd61477202770b +DIST sandy-0.4.tar.bz2 18309 SHA256 d30336704178611f36a55982932369c6dd55a781e22735bb7dfcb3e4b939492a SHA512 3579436d6566b9ef3273abb7bb1d8934901155220edb963a0ed93db4b860e1e3fa0d0f1235ea87b42f1b6ddbb69e3ef1f5ba7a2e9455d6659b621d9a4e3f25c2 WHIRLPOOL 5e1042ebab68bd2f0e71c25dbd15a35ec06e4b953b3a44637c52cc0949dcddc44131ef64324eac1ba00f49bf0421ac0600f884daded73608bc1aca3cce22bb17 +EBUILD sandy-0.4.ebuild 688 SHA256 97bb859e0862952de69254b52963d06d23e0631ad2f678bea98d96a34c498dd4 SHA512 6b6170195b9681fe44f2991fa033d26e685a1b7f527032dc128d4661d6faf36539d56ad7b60e9db3de10833f55f05d8b76778afc638ac31fe1a0cda7e591ee71 WHIRLPOOL 7f8b67e35d72b04a6622ea1225cde99f6a1b5cf749d39180f9a0fb4346657e4b496f33bbe010dedc44fb82b389e0dabf38b8143cca2bb6c7110ae64b75f97235 +MISC ChangeLog 277 SHA256 59a9e100131c64b3fdabe2ed2bca34a5dba428decfc5ad16a434253dc57b345a SHA512 7415fc33974896caec0edd18fd51332fa596d2fea89a9e973bc62fb075cf743b9e34c910f3f1ffe9a2a6b97b7b0be701f5761601900f78bb40c04e01c3b21ea9 WHIRLPOOL 3fc7b06129fab896ce888b6884fc2ddd5138fa8ab0239245ef7a0b2b1ca41a52f35bedc7aaf94672d5cf32ee992223ea089f4eda7e74d38fa4c111f1d86fe729 +MISC metadata.xml 196 SHA256 599d489eaeda79157559bc9f7ecdabec345da752748886b14ef461d4fd95bf4b SHA512 d09d812ff37949ddbd49ad24e7c10444c4205e4e8466bba88fb04a973065632160988df92dc5b1f4514b3800581c1afee799ce01533eb0dd09902aa592ffe1cb WHIRLPOOL c67c7b4c7b29362abb1195603ede1ffb02875eb10b33670cf48b94f5a8a84fb76865886f0a487496b8765ed5d340d01ea94095617179bb20bd3fb029262b9355 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..3fcf9a077c2a --- /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> +<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..c7451b03ac0c --- /dev/null +++ b/app-editors/sandy/sandy-0.4.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-editors/sandy/sandy-0.4.ebuild,v 1.1 2015/05/28 17:33:51 jer Exp $ + +EAPI=5 +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="an ncurses text editor with an easy-to-read, hackable C source" +HOMEPAGE="http://tools.suckless.org/sandy" +SRC_URI="http://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 +} |