diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-03-24 18:09:42 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-03-24 18:10:15 +0100 |
commit | afc2bca12fe01504943f1587cd30a34911e266b8 (patch) | |
tree | 46ef746bb842e8bf3bdab2aac214d725875f2ba6 /media-gfx | |
parent | net-analyzer/netdata: version bump 1.6.0 (diff) | |
download | gentoo-afc2bca12fe01504943f1587cd30a34911e266b8.tar.gz gentoo-afc2bca12fe01504943f1587cd30a34911e266b8.tar.bz2 gentoo-afc2bca12fe01504943f1587cd30a34911e266b8.zip |
media-gfx/xfig: Version bump
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/xfig/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/xfig/files/xfig-3.2.6a-app-defaults.patch | 14 | ||||
-rw-r--r-- | media-gfx/xfig/files/xfig-3.2.6a-solaris.patch | 26 | ||||
-rw-r--r-- | media-gfx/xfig/files/xfig-3.2.6a-urwfonts.patch | 79 | ||||
-rw-r--r-- | media-gfx/xfig/xfig-3.2.6a.ebuild | 50 |
5 files changed, 170 insertions, 0 deletions
diff --git a/media-gfx/xfig/Manifest b/media-gfx/xfig/Manifest index 8f63326ed0e3..029b8c5612ab 100644 --- a/media-gfx/xfig/Manifest +++ b/media-gfx/xfig/Manifest @@ -1 +1,2 @@ +DIST xfig-full-3.2.6a.tar.xz 5502944 SHA256 51fa4f5006ebea0657a3b92c62dfbc0116ca63f581370f102af5970de45abd67 SHA512 82e292e050213b6d22be5e174224308b446505e25208f29d4f4c5e760a87ff4104b9dcea0a332241c9bca358e1d44336bb38c316eb3f28130d7c8828c10a805f WHIRLPOOL 56d94e6b3bbd6b419f9c0d10ee548ec52fe79bb70e14bca8b88e047090d33e06b63deab9d0bd87b3280883c04c0af5043bc143f738af9765e6d133adf64a5ff5 DIST xfig.3.2.5c.full.tar.gz 6078933 SHA256 ea628f975b79ab175ab29220cc118274466497f6217f2989928317be2993a1f9 SHA512 763bd6fd43bff9b44f934dd6e16b0aa5142041f895e74564d28e7252e012f1c7728bbee40e3970357c7d3fd15aa109dbfcbc1d0a2203fa1a2ed770aabacd9525 WHIRLPOOL f2234fc9c1f011bdec301b447816f7bfd090bc2ca3471823afd0617ae15ceafb195dd81ddbb0b255f23e0256b35e12cdd30f44fb65d3fff23f444e4d26028726 diff --git a/media-gfx/xfig/files/xfig-3.2.6a-app-defaults.patch b/media-gfx/xfig/files/xfig-3.2.6a-app-defaults.patch new file mode 100644 index 000000000000..7d11b571df39 --- /dev/null +++ b/media-gfx/xfig/files/xfig-3.2.6a-app-defaults.patch @@ -0,0 +1,14 @@ +diff -ruN xfig-3.2.6a.orig/app-defaults/Fig xfig-3.2.6a/app-defaults/Fig +--- xfig-3.2.6a.orig/app-defaults/Fig 2017-01-10 00:27:39.000000000 +0100 ++++ xfig-3.2.6a/app-defaults/Fig 2017-03-24 16:22:14.702253419 +0100 +@@ -10,6 +10,10 @@ + + ! some sample settings you may want to change + ++! If the following resource is set to false, xfig will use metric units ++! by default. ++Fig.inches: false ++ + ! The following fixes a problem that some window managers have + ! with xfig continually resizing itself + diff --git a/media-gfx/xfig/files/xfig-3.2.6a-solaris.patch b/media-gfx/xfig/files/xfig-3.2.6a-solaris.patch new file mode 100644 index 000000000000..5c6cd023fe6f --- /dev/null +++ b/media-gfx/xfig/files/xfig-3.2.6a-solaris.patch @@ -0,0 +1,26 @@ +* workaround some missing things on Solaris + +--- a/src/u_quartic.c ++++ b/src/u_quartic.c +@@ -21,4 +21,7 @@ + #include <math.h> + ++ #ifndef M_PI ++ # define M_PI 3.14159265358979323846 ++ #endif + + static int +--- a/src/w_intersect.c ++++ b/src/w_intersect.c +@@ -31,6 +31,11 @@ + #define ISET_P1 (1 << 0) + #define ISET_P2 (1 << 1) + ++#if defined (__SVR4) && defined (__sun) ++#undef _Complex_I ++#define _Complex_I (__extension__ 1.0fi) ++#endif ++ + intersect_state_e intersect_state = INTERSECT_INITIAL; + + static INLINE Boolean diff --git a/media-gfx/xfig/files/xfig-3.2.6a-urwfonts.patch b/media-gfx/xfig/files/xfig-3.2.6a-urwfonts.patch new file mode 100644 index 000000000000..89957590af6d --- /dev/null +++ b/media-gfx/xfig/files/xfig-3.2.6a-urwfonts.patch @@ -0,0 +1,79 @@ +--- a/src/u_fonts.c 2002-09-09 13:36:58.000000000 -0400 ++++ b/src/u_fonts.c 2006-10-11 00:29:07.000000000 -0400 +@@ -22,41 +22,41 @@ + /* X11 font names */ + + struct _xfstruct x_fontinfo[NUM_FONTS] = { +- {"-*-times-medium-r-normal--", (struct xfont*) NULL}, +- {"-*-times-medium-i-normal--", (struct xfont*) NULL}, +- {"-*-times-bold-r-normal--", (struct xfont*) NULL}, +- {"-*-times-bold-i-normal--", (struct xfont*) NULL}, +- {"-*-avantgarde-book-r-normal--", (struct xfont*) NULL}, +- {"-*-avantgarde-book-o-normal--", (struct xfont*) NULL}, +- {"-*-avantgarde-demi-r-normal--", (struct xfont*) NULL}, +- {"-*-avantgarde-demi-o-normal--", (struct xfont*) NULL}, +- {"-*-bookman-light-r-normal--", (struct xfont*) NULL}, +- {"-*-bookman-light-i-normal--", (struct xfont*) NULL}, +- {"-*-bookman-demi-r-normal--", (struct xfont*) NULL}, +- {"-*-bookman-demi-i-normal--", (struct xfont*) NULL}, +- {"-*-courier-medium-r-normal--", (struct xfont*) NULL}, +- {"-*-courier-medium-o-normal--", (struct xfont*) NULL}, +- {"-*-courier-bold-r-normal--", (struct xfont*) NULL}, +- {"-*-courier-bold-o-normal--", (struct xfont*) NULL}, +- {"-*-helvetica-medium-r-normal--", (struct xfont*) NULL}, +- {"-*-helvetica-medium-o-normal--", (struct xfont*) NULL}, +- {"-*-helvetica-bold-r-normal--", (struct xfont*) NULL}, +- {"-*-helvetica-bold-o-normal--", (struct xfont*) NULL}, +- {"-*-helvetica-medium-r-narrow--", (struct xfont*) NULL}, +- {"-*-helvetica-medium-o-narrow--", (struct xfont*) NULL}, +- {"-*-helvetica-bold-r-narrow--", (struct xfont*) NULL}, +- {"-*-helvetica-bold-o-narrow--", (struct xfont*) NULL}, +- {"-*-new century schoolbook-medium-r-normal--", (struct xfont*) NULL}, +- {"-*-new century schoolbook-medium-i-normal--", (struct xfont*) NULL}, +- {"-*-new century schoolbook-bold-r-normal--", (struct xfont*) NULL}, +- {"-*-new century schoolbook-bold-i-normal--", (struct xfont*) NULL}, +- {"-*-palatino-medium-r-normal--", (struct xfont*) NULL}, +- {"-*-palatino-medium-i-normal--", (struct xfont*) NULL}, +- {"-*-palatino-bold-r-normal--", (struct xfont*) NULL}, +- {"-*-palatino-bold-i-normal--", (struct xfont*) NULL}, +- {"-*-symbol-medium-r-normal--", (struct xfont*) NULL}, +- {"-*-itc zapf chancery-medium-i-normal--", (struct xfont*) NULL}, +- {"-*-itc zapf dingbats-*-*-*--", (struct xfont*) NULL}, ++ {"-urw-nimbus roman no9 l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus roman no9 l-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus roman no9 l-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus roman no9 l-bold-i-normal--", (struct xfont*) NULL}, ++ {"-urw-urw gothic l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw gothic l-medium-o-normal--", (struct xfont*) NULL}, ++ {"-urw-urw gothic l-semibold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw gothic l-semibold-o-normal--", (struct xfont*) NULL}, ++ {"-urw-urw bookman l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw bookman l-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-urw bookman l-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw bookman l-bold-i-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus mono l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus mono l-medium-o-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus mono l-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus mono l-bold-o-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-bold-i-normal--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-medium-r-condensed--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-medium-i-condensed--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-bold-r-condensed--", (struct xfont*) NULL}, ++ {"-urw-nimbus sans l-bold-i-condensed--", (struct xfont*) NULL}, ++ {"-urw-century schoolbook l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-century schoolbook l-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-century schoolbook l-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-century schoolbook l-bold-i-normal--", (struct xfont*) NULL}, ++ {"-urw-urw palladio l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw palladio l-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-urw palladio l-bold-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw palladio l-bold-i-normal--", (struct xfont*) NULL}, ++ {"-urw-standard symbols l-medium-r-normal--", (struct xfont*) NULL}, ++ {"-urw-urw chancery l-medium-i-normal--", (struct xfont*) NULL}, ++ {"-urw-dingbats-medium-r-normal--", (struct xfont*) NULL}, + }; + + /* Use the following font names for any font that doesn't exist in the table above. diff --git a/media-gfx/xfig/xfig-3.2.6a.ebuild b/media-gfx/xfig/xfig-3.2.6a.ebuild new file mode 100644 index 000000000000..7192bace12e6 --- /dev/null +++ b/media-gfx/xfig/xfig-3.2.6a.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils multilib + +MY_P=${PN}.${PV} + +DESCRIPTION="A menu-driven tool to draw and manipulate objects interactively in an X window" +HOMEPAGE="http://www.xfig.org" +SRC_URI="mirror://sourceforge/mcj/${PN}-full-${PV}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" +IUSE="jpeg nls postscript" + +RDEPEND="x11-libs/libXaw + x11-libs/libXp + x11-libs/libXaw3d + x11-libs/libXi + x11-libs/libXt + media-libs/libpng:0= + media-fonts/font-misc-misc + media-fonts/urw-fonts + >=media-gfx/transfig-3.2.5-r1 + media-libs/netpbm + jpeg? ( virtual/jpeg:0= ) + nls? ( x11-libs/libXaw3d[unicode] ) + postscript? ( app-text/ghostscript-gpl ) +" +DEPEND="${RDEPEND} + x11-misc/imake + x11-proto/xproto + x11-proto/inputproto" + +PATCHES=( + "${FILESDIR}/${PN}-3.2.6a-urwfonts.patch" + "${FILESDIR}/${PN}-3.2.6a-solaris.patch" + "${FILESDIR}/${PN}-3.2.6a-app-defaults.patch" +) + +src_configure() { + econf \ + $(use_enable nls i18n) \ + $(use_enable jpeg) \ + $(use_with postscript gs) \ + --htmldir="${EPREFIX}/usr/share/doc/${PF}" # it expects docdir... +} |