summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-text/notecase
downloadgentoo-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-text/notecase')
-rw-r--r--app-text/notecase/Manifest1
-rw-r--r--app-text/notecase/files/notecase-1.7.2-CFLAGS.patch29
-rw-r--r--app-text/notecase/files/notecase-1.9.8-gcc44.patch22
-rw-r--r--app-text/notecase/files/notecase-1.9.8-gtksourceview.patch13
-rw-r--r--app-text/notecase/metadata.xml10
-rw-r--r--app-text/notecase/notecase-1.9.8-r1.ebuild72
6 files changed, 147 insertions, 0 deletions
diff --git a/app-text/notecase/Manifest b/app-text/notecase/Manifest
new file mode 100644
index 00000000000..102fa874d17
--- /dev/null
+++ b/app-text/notecase/Manifest
@@ -0,0 +1 @@
+DIST notecase-1.9.8_src.tar.gz 928579 SHA256 0b7e23ec97efd5cd4ada651ac93273f9e5ed2cfff027abfb4ae130039563b746 SHA512 9c03da5a4f5290b25c1da32373f3e78d80c514dfed95b2c8f89e561c9acc062e10d3fa1c75241a3452168821ed60182016955b1923a3798fad572e9f5d3fdaf5 WHIRLPOOL 427996fc8d0cfc2bd44e788cb6e1adc69c52260344be0fe48d571edd61ef6b23f80e20a3838322d413a02158a04b2cdfaff5e96e613c6cb077e857f29e75db51
diff --git a/app-text/notecase/files/notecase-1.7.2-CFLAGS.patch b/app-text/notecase/files/notecase-1.7.2-CFLAGS.patch
new file mode 100644
index 00000000000..6eebb8650fb
--- /dev/null
+++ b/app-text/notecase/files/notecase-1.7.2-CFLAGS.patch
@@ -0,0 +1,29 @@
+--- Makefile.orig 2007-11-13 16:31:55.000000000 +0100
++++ Makefile 2007-11-13 16:33:04.000000000 +0100
+@@ -113,18 +113,9 @@
+ QC=@echo '===> Compiling $<';
+ QL=@echo '===> Linking $@';
+
+-# using "--as-needed" to cut down link requirements (check by "readelf -d /usr/bin/notecase | grep NEEDED")
+-ifeq ($(LDFLAGS),)
+-ifdef OSX_BUILD
+- LDFLAGS=-Os -Wl -bind_at_load
+-else
+- LDFLAGS=-Os -Wl,--as-needed
+-endif
+-
+ ifneq ($(NOKIA_MAEMO_BUILD),)
+ LDFLAGS += -ansi
+ endif
+-endif
+
+ # define compile/link command line with flags
+ CC=$(QC) $(CXX) $(DEBUG) $(PROFILE) -DENABLE_NLS
+@@ -158,7 +149,6 @@
+ $(OBJ)/IOLayerRedirect.o $(OBJ)/FileExportDlg.o $(OBJ)/FormatIOTxt.o $(OBJ)/FindReplaceDlg.o \
+ $(OBJ)/FindReplaceInfo.o $(OBJ)/LinkInfo.o $(OBJ)/LinkPropertiesDlg.o $(OBJ)/ExecuteFile.o \
+ $(OBJ)/FileSaveAsDlg.o $(OBJ)/CircularBuffer.o $(OBJ)/FormatIOMMLX.o \
+- $(OBJ)/libz.a \
+ $(OBJ)/ProgressDlg.o $(OBJ)/DocActionPix.o $(OBJ)/DocActionFinish.o $(OBJ)/DocActionFmt.o $(OBJ)/FmtInfo.o \
+ $(OBJ)/FileAttachmentDlg.o $(OBJ)/DocActionAtt.o $(OBJ)/PixPropertiesDlg.o $(OBJ)/DocActionFinishDel.o \
+ $(OBJ)/ShortcutsList.o $(OBJ)/ShortcutsListDlg.o $(OBJ)/DateTimeDlg.o $(OBJ)/AboutDlg.o $(OBJ)/EditDlg.o
diff --git a/app-text/notecase/files/notecase-1.9.8-gcc44.patch b/app-text/notecase/files/notecase-1.9.8-gcc44.patch
new file mode 100644
index 00000000000..be34074283f
--- /dev/null
+++ b/app-text/notecase/files/notecase-1.9.8-gcc44.patch
@@ -0,0 +1,22 @@
+diff -Naurp notecase-1.9.8-orig/src/lib/IniFile.cpp notecase-1.9.8/src/lib/IniFile.cpp
+--- notecase-1.9.8-orig/src/lib/IniFile.cpp 2008-10-24 12:54:50.000000000 -0600
++++ notecase-1.9.8/src/lib/IniFile.cpp 2009-07-27 13:04:34.519339275 -0600
+@@ -9,6 +9,7 @@
+ #include "IniFile.h"
+ #include <algorithm> //find() function
+ #include <string>
++#include <cstdio>
+ #include "File64.h"
+ #include "FilePath.h"
+ #include "debug.h"
+diff -Naurp notecase-1.9.8-orig/src/_unx/ExecuteFile.cpp notecase-1.9.8/src/_unx/ExecuteFile.cpp
+--- notecase-1.9.8-orig/src/_unx/ExecuteFile.cpp 2008-10-24 12:54:50.000000000 -0600
++++ notecase-1.9.8/src/_unx/ExecuteFile.cpp 2009-07-27 13:07:56.101813217 -0600
+@@ -12,6 +12,7 @@
+ #include "../lib/debug.h"
+ #include <string>
+ #include <cstring>
++#include <cstdio>
+ #include <vector>
+ #include <algorithm>
+ #include <string.h>
diff --git a/app-text/notecase/files/notecase-1.9.8-gtksourceview.patch b/app-text/notecase/files/notecase-1.9.8-gtksourceview.patch
new file mode 100644
index 00000000000..931ef741346
--- /dev/null
+++ b/app-text/notecase/files/notecase-1.9.8-gtksourceview.patch
@@ -0,0 +1,13 @@
+Index: notecase-1.9.8/Makefile
+===================================================================
+--- notecase-1.9.8.orig/Makefile
++++ notecase-1.9.8/Makefile
+@@ -685,7 +685,7 @@ updatesrc:
+ exit 1;\
+ fi;
+ $(Q)if [ "$(HAVE_GTKSOURCEVIEW)" = "1" ]; then \
+- if [[ "$(TEST_SRCVIEW_VER)" < "2.4.1" ]]; then \
++ if [[ "$(TEST_SRCVIEW_VER)" < "2.10.1" ]]; then \
+ echo 'ERROR: gtksourceview package is too old ($(shell pkg-config --modversion gtksourceview-2.0))!';\
+ exit 1;\
+ fi;\
diff --git a/app-text/notecase/metadata.xml b/app-text/notecase/metadata.xml
new file mode 100644
index 00000000000..99d267f38d7
--- /dev/null
+++ b/app-text/notecase/metadata.xml
@@ -0,0 +1,10 @@
+<?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>
+ <upstream>
+ <remote-id type="sourceforge">notecase</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-text/notecase/notecase-1.9.8-r1.ebuild b/app-text/notecase/notecase-1.9.8-r1.ebuild
new file mode 100644
index 00000000000..0a2ded918cd
--- /dev/null
+++ b/app-text/notecase/notecase-1.9.8-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils fdo-mime
+
+DESCRIPTION="Hierarchical note manager written using GTK+ and C++"
+HOMEPAGE="http://notecase.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}_src.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="gnome nls"
+
+RDEPEND="sys-libs/zlib:0
+ >=x11-libs/gtk+-2.6:2
+ x11-libs/libX11:0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig:*"
+
+# test doesn't work
+RESTRICT="test"
+
+src_prepare() {
+ # Respect CFLAGS and don't use --as-needed by default
+ epatch "${FILESDIR}/notecase-1.7.2-CFLAGS.patch"
+ epatch "${FILESDIR}"/${P}-gcc44.patch
+ epatch "${FILESDIR}"/${P}-gtksourceview.patch
+
+ if ! use gnome; then
+ # Comment variable in the Makefile if we don't have gnome
+ sed -i -e 's/HAVE_GNOME_VFS=1/#HAVE_GNOME_VFS=1/g' \
+ -e 's/AUTODETECT_GNOME_VFS=1/#AUTODETECT_GNOME_VFS=1/g' \
+ Makefile || die "gnome sed failed"
+ fi
+
+ ! use nls && {
+ sed -i -e 's/notecase$(EXE) poinstall/notecase$(EXE)/g' \
+ Makefile || die "nls sed failed"
+ }
+
+ # Verbose building, fix as-needed support and missing libs.
+ sed -e 's/^\(Q[CL]*=\)@.*$/\1/' \
+ -e 's:\(-o $(BIN)/notecase$(EXE) .*\) \($(GTKLIBS)\):\2 -lX11 -lz \1:' \
+ -i Makefile || die
+
+ # Remove Application category from .desktop file.
+ sed -i 's/^\(Categories=\)Application;/\1/' docs/notecase.desktop || die
+}
+
+src_compile() {
+ emake -j1
+}
+
+src_install() {
+ default
+
+ dodoc readme.txt
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}