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-office/magicpoint | |
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-office/magicpoint')
-rw-r--r-- | app-office/magicpoint/Manifest | 1 | ||||
-rw-r--r-- | app-office/magicpoint/files/50magicpoint-gentoo.el | 6 | ||||
-rw-r--r-- | app-office/magicpoint/files/magicpoint-1.11b-gentoo.diff | 37 | ||||
-rw-r--r-- | app-office/magicpoint/files/magicpoint-1.13a-implicit-declaration.patch | 10 | ||||
-rw-r--r-- | app-office/magicpoint/files/magicpoint-1.13a-libpng15.patch | 11 | ||||
-rw-r--r-- | app-office/magicpoint/magicpoint-1.13a.ebuild | 132 | ||||
-rw-r--r-- | app-office/magicpoint/metadata.xml | 14 |
7 files changed, 211 insertions, 0 deletions
diff --git a/app-office/magicpoint/Manifest b/app-office/magicpoint/Manifest new file mode 100644 index 000000000000..f55b6d685037 --- /dev/null +++ b/app-office/magicpoint/Manifest @@ -0,0 +1 @@ +DIST magicpoint-1.13a.tar.gz 890670 SHA256 205e6752e3cb024bcce0583b43dafc9b89490c0016daa91d2486891edcf2cfc1 SHA512 c2399826d770f6307128eb1a88593404d5b495203319e0c90edf36e91ce82e2e42b1777cbf473f52376aa4645468ac65920839f94b58d7c9d90f08a961273df9 WHIRLPOOL ed40897f528bd70ef785f5f0c2f5a0b55ad6f14fe9fbc65849b8713d7fa84590d5f668f008d8b0b737db7e95373f5865a85446489ea0790d6e8e206f30bb7d72 diff --git a/app-office/magicpoint/files/50magicpoint-gentoo.el b/app-office/magicpoint/files/50magicpoint-gentoo.el new file mode 100644 index 000000000000..301fcb4d4bb6 --- /dev/null +++ b/app-office/magicpoint/files/50magicpoint-gentoo.el @@ -0,0 +1,6 @@ + +;;; magicpoint site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(autoload 'mgp-mode "mgp-mode" "MagicPoint editor mode" t) +(add-to-list 'auto-mode-alist '("\\.mgp\\'" . mgp-mode)) diff --git a/app-office/magicpoint/files/magicpoint-1.11b-gentoo.diff b/app-office/magicpoint/files/magicpoint-1.11b-gentoo.diff new file mode 100644 index 000000000000..8c0d454972a3 --- /dev/null +++ b/app-office/magicpoint/files/magicpoint-1.11b-gentoo.diff @@ -0,0 +1,37 @@ +diff -urN magicpoint-1.10a.ORIG/mgp.h magicpoint-1.10a/mgp.h +--- magicpoint-1.10a.ORIG/mgp.h 2003-06-06 16:18:25.000000000 +0900 ++++ magicpoint-1.10a/mgp.h 2003-09-02 04:24:56.000000000 +0900 +@@ -93,7 +93,7 @@ + #include "freetype.h" + + #ifndef FREETYPEFONTDIR +-#define FREETYPEFONTDIR "/usr/local/share/fonts/ttf" ++#define FREETYPEFONTDIR "/usr/X11R6/lib/X11/fonts/truetype" + #endif + #endif /*FREETYPE*/ + +@@ -130,7 +130,7 @@ + #define UUDECODE "/usr/bin/uudecode" + #endif + #ifndef GUNZIP +-#define GUNZIP "/usr/contrib/bin/gunzip" ++#define GUNZIP "/bin/gunzip" + #endif + + #define MAXPAGE 512 +diff -urN magicpoint-1.10a.ORIG/sample/default.mgp magicpoint-1.10a/sample/default.mgp +--- magicpoint-1.10a.ORIG/sample/default.mgp 2001-08-11 01:40:54.000000000 +0900 ++++ magicpoint-1.10a/sample/default.mgp 2003-09-02 04:24:56.000000000 +0900 +@@ -12,9 +12,9 @@ + %% into the "tfdir" directory above: + %% ftp://ftp.mew.org/pub/mgp/ttf-jp.tar.gz + %% +-%deffont "standard" tfont "standard.ttf", tmfont "kochi-mincho.ttf" +-%deffont "thick" tfont "thick.ttf", tmfont "goth.ttf" +-%deffont "typewriter" tfont "typewriter.ttf", tmfont "goth.ttf" ++%deffont "standard" xfont "serif" "iso10646" ++%deffont "thick" xfont "sans-serif" "iso10646" ++%deffont "typewriter" xfont "monospace" "iso10646" + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %% + %% Default settings per each line numbers. diff --git a/app-office/magicpoint/files/magicpoint-1.13a-implicit-declaration.patch b/app-office/magicpoint/files/magicpoint-1.13a-implicit-declaration.patch new file mode 100644 index 000000000000..c38aa876bb7a --- /dev/null +++ b/app-office/magicpoint/files/magicpoint-1.13a-implicit-declaration.patch @@ -0,0 +1,10 @@ +--- magicpoint-1.12a/ctlwords.c 1999-02-14 18:02:25.000000000 -0500 ++++ ctlwords.c 2007-10-26 15:41:16.000000000 -0400 +@@ -24,6 +24,7 @@ + + #include <stdio.h> + #include <string.h> ++#include <stdlib.h> + + main(int argc, char *argv[]) + { diff --git a/app-office/magicpoint/files/magicpoint-1.13a-libpng15.patch b/app-office/magicpoint/files/magicpoint-1.13a-libpng15.patch new file mode 100644 index 000000000000..7990b4685544 --- /dev/null +++ b/app-office/magicpoint/files/magicpoint-1.13a-libpng15.patch @@ -0,0 +1,11 @@ +--- image/png.c ++++ image/png.c +@@ -86,7 +86,7 @@ + return NULL; + } + +- if (setjmp(png_ptr->jmpbuf)) { ++ if (setjmp(png_jmpbuf(png_ptr))) { + png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); + fclose(fp); + return NULL; diff --git a/app-office/magicpoint/magicpoint-1.13a.ebuild b/app-office/magicpoint/magicpoint-1.13a.ebuild new file mode 100644 index 000000000000..6f97fc02d737 --- /dev/null +++ b/app-office/magicpoint/magicpoint-1.13a.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit autotools elisp-common eutils fixheadtails toolchain-funcs + +DESCRIPTION="An X11 based presentation tool" +SRC_URI="ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/${P}.tar.gz + ftp://ftp.mew.org/pub/MagicPoint/${P}.tar.gz" +HOMEPAGE="http://member.wide.ad.jp/wg/mgp/" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 ~ppc ~sparc x86" +IUSE="cjk doc emacs examples gif imlib m17n-lib mng nls truetype" + +MY_DEPEND="x11-libs/libICE + x11-libs/libSM + x11-libs/libXrender + x11-libs/libXmu + >=media-libs/libpng-1.4 + gif? ( >=media-libs/giflib-4.0.1 ) + imlib? ( media-libs/imlib ) + truetype? ( x11-libs/libXft ) + emacs? ( virtual/emacs ) + m17n-lib? ( dev-libs/m17n-lib ) + mng? ( media-libs/libmng )" +DEPEND="${MY_DEPEND} + sys-devel/autoconf + x11-proto/xextproto + x11-libs/libxkbfile + app-text/rman + x11-misc/imake" +RDEPEND="${MY_DEPEND} + nls? ( sys-devel/gettext ) + truetype? ( cjk? ( media-fonts/sazanami ) )" + +SITEFILE=50${PN}-gentoo.el + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-1.11b-gentoo.diff \ + "${FILESDIR}"/${P}-implicit-declaration.patch \ + "${FILESDIR}"/${P}-libpng15.patch + + # fix compability with libpng14 + sed -i \ + -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:' \ + configure.in image/png.c || die + + # bug #85720 + sed -i -e "s/ungif/gif/g" configure.in || die + ht_fix_file configure.in + eautoreconf +} + +src_configure() { + econf \ + $(use_enable gif) \ + $(use_enable imlib) \ + $(use_enable nls locale) \ + $(use_enable truetype xft2) \ + $(use_with m17n-lib) \ + --disable-vflib \ + --disable-freetype \ + --x-libraries=/usr/lib/X11 \ + --x-includes=/usr/include/X11 +} + +src_compile() { + xmkmf || die + # no parallel build possibly, anywhere + emake -j1 Makefiles + emake -j1 clean + tc-export CC + emake -j1 CC="${CC}" CDEBUGFLAGS="${CFLAGS}" LOCAL_LDFLAGS="${LDFLAGS}" \ + BINDIR=/usr/bin LIBDIR=/etc/X11 + if use emacs; then + cd contrib/ + elisp-compile *.el || die + fi +} + +src_install() { + emake -j1 \ + DESTDIR="${D}" \ + BINDIR=/usr/bin \ + LIBDIR=/etc/X11 \ + install + + emake -j1 \ + DESTDIR="${D}" \ + DOCHTMLDIR=/usr/share/doc/${PF} \ + MANPATH=/usr/share/man \ + MANSUFFIX=1 \ + install.man + + dobin contrib/{mgp2html.pl,mgp2latex.pl} + + if use emacs; then + cd contrib/ + elisp-install ${PN} *.el *.elc || die + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + cd - + fi + + use doc && dodoc FAQ README* RELNOTES SYNTAX TODO* USAGE* + + if use examples; then + cd sample + insinto /usr/share/${PF}/sample + doins README* cloud.jpg dad.* embed*.mgp gradation*.mgp \ + mgp-old*.jpg mgp.mng mgp3.xbm mgprc-sample \ + multilingual.mgp sample*.mgp sendmail6*.mgp \ + tutorial*.mgp v6*.mgp v6header.* + fi +} + +pkg_postinst() { + elog + elog "If you enabled xft2 support (default) you may specify xfont directive by" + elog "font name and font registry." + elog "e.g.)" + elog '%deffont "standard" xfont "sazanami mincho" "jisx0208.1983"' + elog + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/app-office/magicpoint/metadata.xml b/app-office/magicpoint/metadata.xml new file mode 100644 index 000000000000..0bc4edceb36e --- /dev/null +++ b/app-office/magicpoint/metadata.xml @@ -0,0 +1,14 @@ +<?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 lang="en"> + Magic Point is an X11 based presentation tool. It is designed to make + simple presentations easy while to make complicated presentations + possible. Its presentation file (whose suffix is typically .mgp) is + just text so that you can create presentation files quickly with your + favorite editor (e.g. Emacs, vi). + </longdescription> +</pkgmetadata> |