diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-misc/pal | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
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 <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-misc/pal')
-rw-r--r-- | app-misc/pal/Manifest | 1 | ||||
-rw-r--r-- | app-misc/pal/files/0.4.3-ldflags.patch | 8 | ||||
-rw-r--r-- | app-misc/pal/files/0.4.3-strip.patch | 17 | ||||
-rw-r--r-- | app-misc/pal/files/pal-0.4.3-pkg_config.patch | 14 | ||||
-rw-r--r-- | app-misc/pal/files/pal-0.4.3-prefix.patch | 44 | ||||
-rw-r--r-- | app-misc/pal/metadata.xml | 15 | ||||
-rw-r--r-- | app-misc/pal/pal-0.4.3-r1.ebuild | 55 |
7 files changed, 154 insertions, 0 deletions
diff --git a/app-misc/pal/Manifest b/app-misc/pal/Manifest new file mode 100644 index 000000000000..a392d585572c --- /dev/null +++ b/app-misc/pal/Manifest @@ -0,0 +1 @@ +DIST pal-0.4.3.tgz 130865 SHA256 ce470cb7be76522ff58cd0325ad7817b6cc2132a5e0cea55de8c9eb63b54551c SHA512 8d543706e6dcabbdeb246ff18917b490da43c3211266dc67417906eb92602a107b066e2cb156da2b5362a19ac4992d1f21dc873485d3250912a53143f8257bf8 WHIRLPOOL ffe71469258a9f78ce47deed4b488b49df466c6ed2144186852ade1a55ee670747580ff18140dba92b007c148701bfa8a2c68a260259831f5eb357f5c8bf4d5c diff --git a/app-misc/pal/files/0.4.3-ldflags.patch b/app-misc/pal/files/0.4.3-ldflags.patch new file mode 100644 index 000000000000..0bfd750ac5e7 --- /dev/null +++ b/app-misc/pal/files/0.4.3-ldflags.patch @@ -0,0 +1,8 @@ +--- a/src/Makefile.defs ++++ b/src/Makefile.defs +@@ -25,4 +25,4 @@ + + CFLAGS = ${OPT} + CPPFLAGS = ${INCLDIR} ${DEFS} +-LDFLAGS = ${LIBDIR} ${LIBS} ++LDFLAGS = ${LIBDIR} ${LIBS} ${LDOPT} diff --git a/app-misc/pal/files/0.4.3-strip.patch b/app-misc/pal/files/0.4.3-strip.patch new file mode 100644 index 000000000000..b3bfe3fd99f1 --- /dev/null +++ b/app-misc/pal/files/0.4.3-strip.patch @@ -0,0 +1,17 @@ +--- a/src/Makefile ++++ b/src/Makefile +@@ -21,10 +21,10 @@ + $(NAME): $(OBJ) + @echo " [gcc] $(NAME)" + @$(CC) $(CFLAGS) $(OBJ) $(LDFLAGS) -o $(NAME) +-ifneq ($(DEBUG),1) +- @echo " [strip] $(NAME)" +- @strip $(NAME) +-endif ++#ifneq ($(DEBUG),1) ++# @echo " [strip] $(NAME)" ++# @strip $(NAME) ++#endif + + + diff --git a/app-misc/pal/files/pal-0.4.3-pkg_config.patch b/app-misc/pal/files/pal-0.4.3-pkg_config.patch new file mode 100644 index 000000000000..2a299538e999 --- /dev/null +++ b/app-misc/pal/files/pal-0.4.3-pkg_config.patch @@ -0,0 +1,14 @@ +--- a/src/Makefile ++++ b/src/Makefile +@@ -2,9 +2,9 @@ + + include Makefile.defs + +-INCLDIR = -I${prefix}/include `pkg-config --cflags glib-2.0` ++INCLDIR = -I${prefix}/include $(shell ${PKG_CONFIG} --cflags glib-2.0) + LIBDIR = +-LIBS = `pkg-config --libs glib-2.0` -lreadline -lncurses ++LIBS = $(shell ${PKG_CONFIG} --libs glib-2.0) -lreadline $(shell ${PKG_CONFIG} --libs ncurses) + + SRC = main.c colorize.c output.c input.c event.c rl.c html.c latex.c \ + add.c edit.c del.c remind.c search.c manage.c diff --git a/app-misc/pal/files/pal-0.4.3-prefix.patch b/app-misc/pal/files/pal-0.4.3-prefix.patch new file mode 100644 index 000000000000..08dfba41c7e7 --- /dev/null +++ b/app-misc/pal/files/pal-0.4.3-prefix.patch @@ -0,0 +1,44 @@ +--- a/src/Makefile.defs ++++ b/src/Makefile.defs +@@ -3,7 +3,7 @@ + + # directory to install to. Depending on your distribution, you might + # want to change this to /usr/local +-prefix = /usr ++prefix = @GENTOO_PORTAGE_EPREFIX@/usr + CC = gcc + + PAL_VERSION = 0.3.5_pre1 +--- a/src/input.c ++++ b/src/input.c +@@ -567,7 +567,7 @@ + } + + /* attempt to copy /etc/pal.conf to ~/.pal/pal.conf */ +- file = fopen("/etc/pal.conf", "r"); ++ file = fopen("@GENTOO_PORTAGE_EPREFIX@/etc/pal.conf", "r"); + + /* if not found, try PREFIX/share/pal/pal.conf instead */ + /* NOTE: This is will be removed in the future */ +@@ -577,7 +577,7 @@ + + if(file == NULL) + { +- pal_output_error(_("ERROR: Can't open file: /etc/pal.conf\n")); ++ pal_output_error(_("ERROR: Can't open file: @GENTOO_PORTAGE_EPREFIX@/etc/pal.conf\n")); + pal_output_error(_("ERROR: Can't open file: " PREFIX "/share/pal/pal.conf\n")); + pal_output_error(_("ERROR: This indicates an improper installation.\n")); + return ht; +--- a/src/Makefile ++++ b/src/Makefile +@@ -51,8 +51,8 @@ + @echo " --- Installing global data --- " + @mkdir -p ${DESTDIR}${prefix}/share/pal; + install -m 0644 -o root ../share/*.pal ${DESTDIR}${prefix}/share/pal +- @mkdir -p ${DESTDIR}/etc; +- install -m 0644 -o root ../pal.conf ${DESTDIR}/etc/ ++ @mkdir -p ${DESTDIR}@GENTOO_PORTAGE_EPREFIX@/etc; ++ install -m 0644 -o root ../pal.conf ${DESTDIR}@GENTOO_PORTAGE_EPREFIX@/etc/ + @echo + + # "install" will install the files needed by pal and also check to see diff --git a/app-misc/pal/metadata.xml b/app-misc/pal/metadata.xml new file mode 100644 index 000000000000..4bcaedf05298 --- /dev/null +++ b/app-misc/pal/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> + pal is a command-line calendar program for Unix/Linux systems that can keep + track of events. It has similarities with the Unix cal command, the more + complex GNU gcal program and the calendar program distributed with the BSDs. +</longdescription> + <upstream> + <remote-id type="sourceforge">palcal</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-misc/pal/pal-0.4.3-r1.ebuild b/app-misc/pal/pal-0.4.3-r1.ebuild new file mode 100644 index 000000000000..b312cf2c0baa --- /dev/null +++ b/app-misc/pal/pal-0.4.3-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils prefix toolchain-funcs + +DESCRIPTION="pal command-line calendar program" +HOMEPAGE="http://palcal.sourceforge.net/" +SRC_URI="mirror://sourceforge/palcal/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~hppa ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~x86-macos" +IUSE="nls" + +RDEPEND=" + >=dev-libs/glib-2.0 + nls? ( virtual/libintl ) + sys-libs/ncurses + sys-libs/readline +" +DEPEND=" + ${RDEPEND} + nls? ( sys-devel/gettext ) + virtual/pkgconfig +" + +S=${WORKDIR}/${P}/src + +src_prepare() { + epatch "${FILESDIR}"/${PV}-strip.patch + epatch "${FILESDIR}"/${PV}-ldflags.patch + epatch "${FILESDIR}"/${P}-pkg_config.patch + epatch "${FILESDIR}"/${P}-prefix.patch + + eprefixify Makefile.defs input.c Makefile + sed -i -e 's/ -o root//g' {.,convert}/Makefile || die + + tc-export PKG_CONFIG +} + +src_compile() { + emake CC="$(tc-getCC)" OPT="${CFLAGS}" LDOPT="${LDFLAGS}" +} + +src_install() { + emake DESTDIR="${D}" install-man install-bin install-share + + if use nls; then + emake DESTDIR="${D}" install-mo + fi + + dodoc "${WORKDIR}"/${P}/{ChangeLog,doc/example.css} +} |