From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- app-editors/sandy/Manifest | 1 + app-editors/sandy/files/sandy-0.4-gentoo.patch | 49 ++++++++++++++++++++++++++ app-editors/sandy/metadata.xml | 7 ++++ app-editors/sandy/sandy-0.4.ebuild | 31 ++++++++++++++++ 4 files changed, 88 insertions(+) create mode 100644 app-editors/sandy/Manifest create mode 100644 app-editors/sandy/files/sandy-0.4-gentoo.patch create mode 100644 app-editors/sandy/metadata.xml create mode 100644 app-editors/sandy/sandy-0.4.ebuild (limited to 'app-editors/sandy') diff --git a/app-editors/sandy/Manifest b/app-editors/sandy/Manifest new file mode 100644 index 000000000000..bb5fc01d1e21 --- /dev/null +++ b/app-editors/sandy/Manifest @@ -0,0 +1 @@ +DIST sandy-0.4.tar.bz2 18309 SHA256 d30336704178611f36a55982932369c6dd55a781e22735bb7dfcb3e4b939492a SHA512 3579436d6566b9ef3273abb7bb1d8934901155220edb963a0ed93db4b860e1e3fa0d0f1235ea87b42f1b6ddbb69e3ef1f5ba7a2e9455d6659b621d9a4e3f25c2 WHIRLPOOL 5e1042ebab68bd2f0e71c25dbd15a35ec06e4b953b3a44637c52cc0949dcddc44131ef64324eac1ba00f49bf0421ac0600f884daded73608bc1aca3cce22bb17 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 @@ + + + + +jer@gentoo.org + + diff --git a/app-editors/sandy/sandy-0.4.ebuild b/app-editors/sandy/sandy-0.4.ebuild new file mode 100644 index 000000000000..76cc1bc27d6e --- /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 +# $Id$ + +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 +} -- cgit v1.2.3-65-gdbad