mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Update to 0.1.7
- Remove unused patch
This commit is contained in:
parent
84d2d7d45b
commit
1f77dc1ee4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=230758
@ -6,8 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= epdfview
|
||||
PORTVERSION= 0.1.6
|
||||
PORTREVISION= 7
|
||||
PORTVERSION= 0.1.7
|
||||
CATEGORIES= graphics print gnome
|
||||
MASTER_SITES= http://trac.emma-soft.com/epdfview/chrome/site/releases/ \
|
||||
LOCAL/chinsan
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (epdfview-0.1.6.tar.bz2) = cce9edb41b4a8308e0ef0eea24b5a1ab
|
||||
SHA256 (epdfview-0.1.6.tar.bz2) = 61d041afc953e0570ddae934179e92edf800f69f043d78058073806504e4137f
|
||||
SIZE (epdfview-0.1.6.tar.bz2) = 406037
|
||||
MD5 (epdfview-0.1.7.tar.bz2) = 1919bb19c16ef0a97d48b0a8303d3c7b
|
||||
SHA256 (epdfview-0.1.7.tar.bz2) = 0afbb0f348d4ba916cf58da48b4749b7cca6a9038136b27dc652161913704ae8
|
||||
SIZE (epdfview-0.1.7.tar.bz2) = 443609
|
||||
|
@ -1,103 +0,0 @@
|
||||
diff -Naur ./src/PrintPter.cxx ../epdfview-0.1.6/src/PrintPter.cxx
|
||||
--- ./src/PrintPter.cxx 2008-08-28 15:27:16.000000000 +0200
|
||||
+++ ../epdfview-0.1.6/src/PrintPter.cxx 2008-08-28 15:27:32.000000000 +0200
|
||||
@@ -230,20 +230,27 @@
|
||||
ppdFindOption (printerPPD, "PageSize");
|
||||
view.clearPageSizeList ();
|
||||
int pageSizeToSelect = 0;
|
||||
- ppd_choice_t *pageSizeChoice = pageSizeOption->choices;
|
||||
- for ( int currentSize = 0 ;
|
||||
- currentSize < pageSizeOption->num_choices ;
|
||||
- ++currentSize, ++pageSizeChoice )
|
||||
+ if ( 0 != pageSizeOption )
|
||||
{
|
||||
- const gchar *sizeName = pageSizeChoice->text;
|
||||
- const gchar *sizeValue = pageSizeChoice->choice;
|
||||
-
|
||||
- view.addPageSize (_(sizeName), sizeValue);
|
||||
- if ( pageSizeChoice->marked )
|
||||
+ ppd_choice_t *pageSizeChoice = pageSizeOption->choices;
|
||||
+ for ( int currentSize = 0 ;
|
||||
+ currentSize < pageSizeOption->num_choices ;
|
||||
+ ++currentSize, ++pageSizeChoice )
|
||||
{
|
||||
- pageSizeToSelect = currentSize;
|
||||
+ const gchar *sizeName = pageSizeChoice->text;
|
||||
+ const gchar *sizeValue = pageSizeChoice->choice;
|
||||
+
|
||||
+ view.addPageSize (_(sizeName), sizeValue);
|
||||
+ if ( pageSizeChoice->marked )
|
||||
+ {
|
||||
+ pageSizeToSelect = currentSize;
|
||||
+ }
|
||||
}
|
||||
}
|
||||
+ else
|
||||
+ {
|
||||
+ view.addPageSize (_("A4"), "A4");
|
||||
+ }
|
||||
view.selectPageSize (pageSizeToSelect);
|
||||
|
||||
// Get the resolutions.
|
||||
@@ -251,29 +258,36 @@
|
||||
ppdFindOption (printerPPD, "Resolution");
|
||||
view.clearResolutionList ();
|
||||
int resolutionToSelect = 0;
|
||||
- ppd_choice_t *resolutionChoice = resolutionOption->choices;
|
||||
- for ( int currentRes = 0 ;
|
||||
- currentRes < resolutionOption->num_choices ;
|
||||
- ++currentRes, ++resolutionChoice )
|
||||
+ if ( 0 != resolutionOption )
|
||||
{
|
||||
- const gchar *resName = resolutionChoice->text;
|
||||
- const gchar *resValue = resolutionChoice->choice;
|
||||
-
|
||||
- view.addResolution (_(resName), resValue);
|
||||
- if ( resolutionChoice->marked )
|
||||
+ ppd_choice_t *resolutionChoice = resolutionOption->choices;
|
||||
+ for ( int currentRes = 0 ;
|
||||
+ currentRes < resolutionOption->num_choices ;
|
||||
+ ++currentRes, ++resolutionChoice )
|
||||
{
|
||||
- resolutionToSelect = currentRes;
|
||||
+ const gchar *resName = resolutionChoice->text;
|
||||
+ const gchar *resValue = resolutionChoice->choice;
|
||||
+
|
||||
+ view.addResolution (_(resName), resValue);
|
||||
+ if ( resolutionChoice->marked )
|
||||
+ {
|
||||
+ resolutionToSelect = currentRes;
|
||||
+ }
|
||||
}
|
||||
}
|
||||
+ else
|
||||
+ {
|
||||
+ view.addResolution (_("300 DPI"), "300x300dpi");
|
||||
+ }
|
||||
view.selectResolution (resolutionToSelect);
|
||||
|
||||
// Get the color models.
|
||||
ppd_option_t *colorModelOption =
|
||||
ppdFindOption (printerPPD, "ColorModel");
|
||||
view.clearColorModelList ();
|
||||
+ int colorModelToSelect = 0;
|
||||
if ( NULL != colorModelOption )
|
||||
{
|
||||
- int colorModelToSelect = 0;
|
||||
ppd_choice_t *colorModelChoice = colorModelOption->choices;
|
||||
for ( int currentColor = 0 ;
|
||||
currentColor < colorModelOption->num_choices ;
|
||||
@@ -288,12 +302,12 @@
|
||||
colorModelToSelect = currentColor;
|
||||
}
|
||||
}
|
||||
- view.selectColorModel (colorModelToSelect);
|
||||
}
|
||||
else
|
||||
{
|
||||
view.addColorModel (_("Grayscale"), "Gray");
|
||||
}
|
||||
+ view.selectColorModel (colorModelToSelect);
|
||||
ppdClose (printerPPD);
|
||||
}
|
||||
}
|
@ -1,12 +1,20 @@
|
||||
bin/epdfview
|
||||
%%NLS%%share/locale/ca/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/cs/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/de/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/el/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/es/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/eu/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/fr/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/it/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/ja/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/pl/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/pt_BR/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/pt_PT/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/ru/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/sv/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/vi/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/zh_CN/LC_MESSAGES/epdfview.mo
|
||||
%%NLS%%share/locale/zh_TW/LC_MESSAGES/epdfview.mo
|
||||
share/applications/epdfview.desktop
|
||||
%%DATADIR%%/pixmaps/icon_epdfview-24.png
|
||||
|
Loading…
Reference in New Issue
Block a user