diff options
author | pav <pav@FreeBSD.org> | 2007-12-16 04:48:48 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2007-12-16 04:48:48 +0800 |
commit | a2f58f0f11dd7c7b0dfc74bcf4b74221aeb02932 (patch) | |
tree | 6458697bdfa9bce15dbb543dba0aaf34908ce9f5 /graphics | |
parent | 9f6aa74c463f83a95970a87532b35c74055ca0ac (diff) | |
download | freebsd-ports-gnome-a2f58f0f11dd7c7b0dfc74bcf4b74221aeb02932.tar.gz freebsd-ports-gnome-a2f58f0f11dd7c7b0dfc74bcf4b74221aeb02932.tar.zst freebsd-ports-gnome-a2f58f0f11dd7c7b0dfc74bcf4b74221aeb02932.zip |
- Fix xfig to be able to use Ghostscript fonts again
- While here, update download location
PR: ports/117253
Submitted by: Steven G. Kargl <kargl@troutmask.apl.washington.edu>
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/xfig-devel/Makefile | 2 | ||||
-rw-r--r-- | graphics/xfig-devel/files/patch-u_fonts.c | 11 | ||||
-rw-r--r-- | graphics/xfig-devel/files/patch-w_fontpanel.c | 20 | ||||
-rw-r--r-- | graphics/xfig/Makefile | 4 | ||||
-rw-r--r-- | graphics/xfig/files/patch-u_fonts.c | 11 | ||||
-rw-r--r-- | graphics/xfig/files/patch-w_fontpanel.c | 18 |
6 files changed, 63 insertions, 3 deletions
diff --git a/graphics/xfig-devel/Makefile b/graphics/xfig-devel/Makefile index f3816685c5d7..202c44699c1e 100644 --- a/graphics/xfig-devel/Makefile +++ b/graphics/xfig-devel/Makefile @@ -7,7 +7,7 @@ PORTNAME= xfig PORTVERSION= 3.2.5.a5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics MASTER_SITES= http://xfig.org/software/xfig/${PORTVERSION:R}-alpha/ DISTNAME= ${PORTNAME}.${PORTVERSION:S,.a,-alpha,}.full diff --git a/graphics/xfig-devel/files/patch-u_fonts.c b/graphics/xfig-devel/files/patch-u_fonts.c new file mode 100644 index 000000000000..4ea1704b38cc --- /dev/null +++ b/graphics/xfig-devel/files/patch-u_fonts.c @@ -0,0 +1,11 @@ +--- u_fonts.c.old 2007-10-17 12:22:24.000000000 -0700 ++++ u_fonts.c 2007-10-17 12:23:36.000000000 -0700 +@@ -107,7 +107,7 @@ + /* PostScript font names matched with X11 font names in x_fontinfo */ + + struct _fstruct ps_fontinfo[NUM_FONTS + 1] = { +- {"Default", -1}, ++ {"Default", 0}, + {"Times-Roman", 0}, + {"Times-Italic", 1}, + {"Times-Bold", 2}, diff --git a/graphics/xfig-devel/files/patch-w_fontpanel.c b/graphics/xfig-devel/files/patch-w_fontpanel.c new file mode 100644 index 000000000000..edee4939bd7c --- /dev/null +++ b/graphics/xfig-devel/files/patch-w_fontpanel.c @@ -0,0 +1,20 @@ +--- w_fontpanel.c.orig Fri Feb 24 12:23:06 2006 ++++ w_fontpanel.c +@@ -143,7 +143,7 @@ + ps_fontmenu_items[i].type = MENU_IMAGESTRING; /* put the fontnames in + * menu */ + ps_fontmenu_items[i].label = ps_fontinfo[i].name; +- ps_fontmenu_items[i].info = (caddr_t) (i - 1); /* index for font # */ ++ ps_fontmenu_items[i].info = (caddr_t) i; /* index for font # */ + } + + for (i = 0; i < NUM_LATEX_FONTS; i++) { +@@ -359,7 +359,7 @@ + char *font_name = mi->label; + + if (*flag_sel) +- *font_ps_sel = (int) mi->info; /* set ps font to one selected */ ++ *font_ps_sel = (int) mi->info - 1; /* set ps font to one selected */ + else + *font_latex_sel = (int) mi->info; /* set latex font to one + * selected */ diff --git a/graphics/xfig/Makefile b/graphics/xfig/Makefile index c917895e06b4..89215c6f139a 100644 --- a/graphics/xfig/Makefile +++ b/graphics/xfig/Makefile @@ -7,9 +7,9 @@ PORTNAME= xfig PORTVERSION= 3.2.5 +PORTREVISION= 1 CATEGORIES= graphics -MASTER_SITES= http://xfig.org/software/xfig/${PORTVERSION}/ \ - ftp://www-epb.lbl.gov/xfig/ +MASTER_SITES= http://files.xfig.org/ DISTNAME= ${PORTNAME}.${PORTVERSION}.full MAINTAINER= ports@FreeBSD.org diff --git a/graphics/xfig/files/patch-u_fonts.c b/graphics/xfig/files/patch-u_fonts.c new file mode 100644 index 000000000000..4ea1704b38cc --- /dev/null +++ b/graphics/xfig/files/patch-u_fonts.c @@ -0,0 +1,11 @@ +--- u_fonts.c.old 2007-10-17 12:22:24.000000000 -0700 ++++ u_fonts.c 2007-10-17 12:23:36.000000000 -0700 +@@ -107,7 +107,7 @@ + /* PostScript font names matched with X11 font names in x_fontinfo */ + + struct _fstruct ps_fontinfo[NUM_FONTS + 1] = { +- {"Default", -1}, ++ {"Default", 0}, + {"Times-Roman", 0}, + {"Times-Italic", 1}, + {"Times-Bold", 2}, diff --git a/graphics/xfig/files/patch-w_fontpanel.c b/graphics/xfig/files/patch-w_fontpanel.c index 1ddf0d4ab2be..cc1275714a74 100644 --- a/graphics/xfig/files/patch-w_fontpanel.c +++ b/graphics/xfig/files/patch-w_fontpanel.c @@ -1,5 +1,14 @@ --- w_fontpanel.c.orig Fri Feb 24 12:23:06 2006 +++ w_fontpanel.c +@@ -143,7 +143,7 @@ + ps_fontmenu_items[i].type = MENU_IMAGESTRING; /* put the fontnames in + * menu */ + ps_fontmenu_items[i].label = ps_fontinfo[i].name; +- ps_fontmenu_items[i].info = (caddr_t) (i - 1); /* index for font # */ ++ ps_fontmenu_items[i].info = (caddr_t) i; /* index for font # */ + } + + for (i = 0; i < NUM_LATEX_FONTS; i++) { @@ -183,7 +183,7 @@ ps_cancel = XtCreateManagedWidget("cancel", commandWidgetClass, ps_form, Args, ArgCount); @@ -36,3 +45,12 @@ XtInstallAccelerators(ps_form, ps_cancel); XtInstallAccelerators(latex_form, latex_cancel); +@@ -359,7 +359,7 @@ + char *font_name = mi->label; + + if (*flag_sel) +- *font_ps_sel = (int) mi->info; /* set ps font to one selected */ ++ *font_ps_sel = (int) mi->info - 1; /* set ps font to one selected */ + else + *font_latex_sel = (int) mi->info; /* set latex font to one + * selected */ |