summaryrefslogtreecommitdiff
path: root/media-gfx/xfig
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-08-27 20:54:43 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-08-27 20:54:43 +0100
commitdab4468820bf30b5a0764b19f519006f0e6bb371 (patch)
tree81b0d4daac1676804b504ed5c49a833b334d1024 /media-gfx/xfig
parentd654bb059f90c086625a31ce15747f8418cd4bd5 (diff)
gentoo auto-resync : 27:08:2022 - 20:54:42
Diffstat (limited to 'media-gfx/xfig')
-rw-r--r--media-gfx/xfig/Manifest4
-rw-r--r--media-gfx/xfig/files/xfig-3.2.8b-Fix-build-with-flto.patch62
-rw-r--r--media-gfx/xfig/files/xfig-3.2.8b-app-defaults.patch14
-rw-r--r--media-gfx/xfig/xfig-3.2.8b.ebuild52
4 files changed, 132 insertions, 0 deletions
diff --git a/media-gfx/xfig/Manifest b/media-gfx/xfig/Manifest
index f3e8ab9eaf30..0a10b16567f5 100644
--- a/media-gfx/xfig/Manifest
+++ b/media-gfx/xfig/Manifest
@@ -2,6 +2,10 @@ AUX xfig-3.2.6a-app-defaults.patch 502 BLAKE2B e7277af104c8fd9ed652e2ec6b1753761
AUX xfig-3.2.6a-solaris.patch 523 BLAKE2B eeae0cc11ae6e3fd6e8c157648d8663131d0d11b020f5e64ec1a324f05ee5bd08be8c111c1ebe34065256d64d103619f61ff3f5524aa7636eb8f76e9aa64a714 SHA512 b2eb546b8fdd0d18bab3d9a2c183149fdb4fb278d5e2d8234f040c4fef727bec7461f861391027dea32028b822aa2e540824cb18af09769f32c7a1fb7bf48319
AUX xfig-3.2.6a-urwfonts.patch 4933 BLAKE2B eb1edf6b30966864dbdf3e932f2cde231ff5777cdc0dff34cf047a169335ba78e493b10817e39aac72221d17d491138c3c28a3b293582d3808255140d5df6762 SHA512 29fea111b6c07f6ea28bc46259c0dc8d20b1bbf86e33d550037744b93d4f4de7ec9c4ea7fa14c5f91a4278848216d183ac841970c798140359e1fc317baac468
AUX xfig-3.2.7b-ghostscript.patch 615 BLAKE2B 374bf50e43980ce3de7e60bdc0ddad5ded9306dfff137e2b644ed21dd201c34ab5b2c3ae57eaf102585333321e217a9d09936db247592b0d559f6bc5744235ad SHA512 7343433ce589495dcf653df678bf364d190dad28bd49d4608d589ab9fe6e385ac0c1e3ca040dacf75503dce9441fb741500cbb1143e248fe1893542c970e7d86
+AUX xfig-3.2.8b-Fix-build-with-flto.patch 1577 BLAKE2B 538e4db451dab09dadb96563f23d43f420a67e59ec2e4f52aff2d274b614bd7806492270bcffebe5c8c1e10394c2dbdb05cc16f92124217fea27014a34a61caa SHA512 3a89b8aa93ae3ff13cf6478d2c85e44519560df7e18bc3f15799c31cc0248dd7c01e510a0f2b8516ba57d9dda4e37c3d0eb04fcdbf90ed402a881b516e7fbb2f
+AUX xfig-3.2.8b-app-defaults.patch 508 BLAKE2B 1d36345fd7b203a7dff8b13a73ae5abf298fc3b7ecfdfbc74068c626002c4b09d9278bafa5ed2b062757097b5fceb75e2baa4f5d6e7bc00505114b147f7bd893 SHA512 fb2e9113740dd93e25d9fbe0afea10538660059318eec0794d300a8fc5c8c9cda9a29302c2d5f285c38a5927994a96b96b68fb231f0f668ba1490fe87b888643
DIST xfig-3.2.7b.tar.xz 5059984 BLAKE2B a22465e16019e9887e302ea308e250ad5d7ba0c49aec8f554a73d3b4489d803a05041cb7d267c543a7c0d3b78eac25077c628283f82767932afcc9d9750ce883 SHA512 f3396ebf8a5961909e58b05b60117fd7bbc8c24fabbd47f108eaea9586f4180af572faffe077b1a5dcbf669ebd69b1c2791f302c126dea62a44aa1592de66f73
+DIST xfig-3.2.8b.tar.xz 5382524 BLAKE2B 94963d165664c6451776fcbc3e332a7933c00d4b43e3d4196f15883a9873171f7a0791e6fa41cbb6e8d07958f9ddcceb9578a62a9893cf2f436c07dcbe3e7f37 SHA512 5cc5e61977f97956baca77bf4bce09d0f47ea6fafb10055d0523f7cccd72d7af80e706daa62ae16df3fc54338b4f6cd4a6b71dc460311e65be749ec84fa662b3
EBUILD xfig-3.2.7b.ebuild 1267 BLAKE2B 6b70670f3c179b7168b65dc97dd2e798b9e1f86a84a4d8dd30c0a8218436637789103cc26ab974cac6391b730df825aeac71d743a57b1b7e7026fa64a7a0a5d1 SHA512 3d6efc8fe4c814f8bfdf27fe27c6bcaa97ac74e79d1b2c8fd89bbc651db18663fddd847877a82eef91a3b897c06f1daa9db1574b34bd6ca0930db3c46d2eb1f7
+EBUILD xfig-3.2.8b.ebuild 1299 BLAKE2B 21a695a0fde2d2980485bc57c227be87d6c88b09d3dabd5cd13945fb85da09a2d36e9a72194fb9ef7981ac044d3376a135daa426831e6d93ee2d21e501039dba SHA512 a301eba990d4daa562d60012929694f2169d46c1e400b9a230185bef21f09f303727a57d85228ad937f005b49360cd12b178519a90d4b2445724404e19201302
MISC metadata.xml 239 BLAKE2B 7318d5b7bc5c4e143cab638973eb637b4d3b5e7d8ff039231251371b0574f12e318412fd306c2bcf7b6b3d5b04a7b103ca5e74c4f8088f944fa79b15f271a51f SHA512 f6816d8f304e955fa8f8e188f0ea7f0e20c2a13f19e5f5832d1e7ec7dda03c644196b762e5b76de6c19efc02fbafc4fc7add41627d36bcce537f7ec877a0ce3b
diff --git a/media-gfx/xfig/files/xfig-3.2.8b-Fix-build-with-flto.patch b/media-gfx/xfig/files/xfig-3.2.8b-Fix-build-with-flto.patch
new file mode 100644
index 000000000000..344d4df06e69
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.8b-Fix-build-with-flto.patch
@@ -0,0 +1,62 @@
+https://sourceforge.net/p/mcj/tickets/149/
+
+From 938c4089e6cc09e6e327f15d622c064865f837ae Mon Sep 17 00:00:00 2001
+From: Matt Turner <mattst88@gmail.com>
+Date: Sat, 27 Aug 2022 09:14:55 -0400
+Subject: [PATCH] Fix build with -flto
+
+With CFLAGS="-lflto" the tests fail to build because main() is
+redeclared with a different type:
+
+../src/main.c:651:1: error: type of ‘main’ does not match original declaration [-Werror=lto-type-mismatch]
+ 651 | main(int argc, char **argv)
+ | ^
+test1.c:47:1: note: type mismatch in parameter 1
+ 47 | main(void)
+ | ^
+test1.c:47:1: note: type ‘void’ should match type ‘int’
+test1.c:47:1: note: ‘main’ was previously declared here
+
+Simply change the definitions of main() in the tests to match
+the one in src/main.c.
+---
+ tests/test1.c | 4 +++-
+ tests/test2.c | 4 +++-
+ tests/test4.c | 4 +++-
+ 3 files changed, 9 insertions(+), 3 deletions(-)
+
+diff --git a/tests/test1.c b/tests/test1.c
+index 83cf930..da76dd7 100644
+--- a/tests/test1.c
++++ b/tests/test1.c
+@@ -44,8 +44,10 @@ round_coords(int *x, int *y)
+ }
+
+ int
+-main(void)
++main(int argc, char *argv[])
+ {
++ (void) argc;
++ (void) argv;
+ int errcode = 0;
+
+ cur_pointposn = 2; /* == P_GRID1, see mode.h */
+diff --git a/tests/test2.c b/tests/test2.c
+index ab3b434..02e919c 100644
+--- a/tests/test2.c
++++ b/tests/test2.c
+@@ -77,8 +77,10 @@ compare(int xc, int yc, int n, int pts[n][2])
+ }
+
+ int
+-main(void)
++main(int argc, char *argv[])
+ {
++ (void) argc;
++ (void) argv;
+ int x, y, yspacing, xc, yc, dist, xdist;
+ int error = 0;
+ int pts_square[2][2];
+--
+2.35.1
+
diff --git a/media-gfx/xfig/files/xfig-3.2.8b-app-defaults.patch b/media-gfx/xfig/files/xfig-3.2.8b-app-defaults.patch
new file mode 100644
index 000000000000..3ca0f99963ac
--- /dev/null
+++ b/media-gfx/xfig/files/xfig-3.2.8b-app-defaults.patch
@@ -0,0 +1,14 @@
+diff -ruN xfig-3.2.8b.orig/app-defaults/Fig xfig-3.2.6a/app-defaults/Fig
+--- xfig-3.2.8b.orig/app-defaults/Fig.in 2017-01-10 00:27:39.000000000 +0100
++++ xfig-3.2.8b/app-defaults/Fig.in 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/xfig-3.2.8b.ebuild b/media-gfx/xfig/xfig-3.2.8b.ebuild
new file mode 100644
index 000000000000..e25f69b210d0
--- /dev/null
+++ b/media-gfx/xfig/xfig-3.2.8b.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit optfeature xdg
+
+DESCRIPTION="A menu-driven tool to draw and manipulate objects interactively in an X window"
+HOMEPAGE="http://mcj.sourceforge.net/"
+SRC_URI="https://downloads.sourceforge.net/project/mcj/${P}.tar.xz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
+
+COMMON_DEPEND="
+ app-text/ghostscript-gpl:=
+ >=media-gfx/transfig-3.2.5-r1
+ media-libs/libjpeg-turbo:0=
+ media-libs/libpng:0=
+ media-libs/tiff
+ x11-libs/libX11
+ x11-libs/libXaw3d[unicode(+)]
+ x11-libs/libXpm
+ x11-libs/libXt
+"
+DEPEND="${COMMON_DEPEND}
+ x11-base/xorg-proto
+"
+RDEPEND="${COMMON_DEPEND}
+ media-fonts/font-misc-misc
+ media-fonts/urw-fonts
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-3.2.6a-urwfonts.patch"
+ "${FILESDIR}/${PN}-3.2.6a-solaris.patch"
+ "${FILESDIR}/${PN}-3.2.8b-app-defaults.patch"
+ "${FILESDIR}/${PN}-3.2.8b-Fix-build-with-flto.patch"
+)
+
+src_configure() {
+ local myeconfargs=(
+ --enable-i18n
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}" # it expects docdir...
+ )
+ econf "${myeconfargs[@]}"
+}
+
+pkg_postinst() {
+ optfeature "GIF support" media-libs/netpbm virtual/imagemagick-tools
+}