ports/148168: [PATCH] update deskutils/alexandria to 0.6.6

Ruslan Mahmatkhanov cvs-src at yandex.ru
Sat Jun 26 17:40:04 UTC 2010


>Number:         148168
>Category:       ports
>Synopsis:       [PATCH] update deskutils/alexandria to 0.6.6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 26 17:40:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Ruslan Mahmatkhanov
>Release:        8.1-PRERELEASE
>Organization:
>Environment:
8.1-PRERELEASE i386
>Description:
1. update to 0.6.6
2. remove stale patch
3. depend on textproc/rubygem-htmlentities as required in INSTALL - w/o it 
   alexandria uses just 3 book info providers instead of 10. 
4. conditionally depend on ruby-image_size as for INSTALL
5. install alexandria.scheme via Rakefile, not manually
6. fix manpage installation path
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruNa alexandria/Makefile alexandria/Makefile
--- alexandria/Makefile	2010-05-31 05:57:51.000000000 +0400
+++ alexandria/Makefile	2010-06-26 21:19:30.000000000 +0400
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	alexandria
-PORTVERSION=	0.6.5
-PORTREVISION=	3
+PORTVERSION=	0.6.6
 CATEGORIES=	deskutils ruby
 MASTER_SITES=	RF
 PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
@@ -22,7 +21,8 @@
 		${RUBY_SITEARCHLIBDIR:S/${PREFIX}/${LOCALBASE}/}/gconf2.so:${PORTSDIR}/devel/ruby-gconf2 \
 		${RUBY_SITEARCHLIBDIR:S/${PREFIX}/${LOCALBASE}/}/libglade2.so:${PORTSDIR}/devel/ruby-libglade2 \
 		rubygem-zoom>=0:${PORTSDIR}/devel/rubygem-zoom \
-		rubygem-hpricot>=0:${PORTSDIR}/www/rubygem-hpricot
+		rubygem-hpricot>=0:${PORTSDIR}/www/rubygem-hpricot \
+		rubygem-htmlentities>=0:${PORTSDIR}/textproc/rubygem-htmlentities
 
 USE_GNOME=	gnomehier intltool
 INSTALLS_ICONS=	yes
@@ -32,6 +32,8 @@
 
 MAN1=		alexandria.1
 
+OPTIONS=	IMAGESIZE "Cover images optimization" off
+
 DOCS=		NEWS README TODO
 GCONF_SCHEMAS=	alexandria.schemas
 
@@ -48,6 +50,10 @@
 IGNORE=		only works with Ruby 1.8.0 or later
 .endif
 
+.if defined(WITH_IMAGESIZE)
+RUN_DEPENDS+=${RUBY_SITELIBDIR}/image_size.rb:${PORTSDIR}/graphics/ruby-image_size
+.endif
+
 pre-build:
 	${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|' \
 		${USR2FIX:S|^|${WRKSRC}/|}
@@ -64,9 +70,6 @@
 	@cd ${WRKSRC} && rake PREFIX=${PREFIX} install
 
 post-install:
-	@${MKDIR} ${LOCALBASE}/etc/gconf/schemas
-	@${INSTALL_DATA} ${WRKSRC}/schemas/alexandria.schemas \
-		${LOCALBASE}/etc/gconf/schemas/
 #.if !defined(NOPORTDOCS)
 #	@${MKDIR} ${RUBY_MODDOCDIR}
 #.for f in ${DOCS}
diff -ruNa alexandria/distinfo alexandria/distinfo
--- alexandria/distinfo	2009-11-15 02:24:57.000000000 +0300
+++ alexandria/distinfo	2010-06-24 02:31:27.000000000 +0400
@@ -1,3 +1,3 @@
-MD5 (ruby/alexandria-0.6.5.tar.gz) = 9c8655f361e6a0c6f8cdc97f36bd2d0f
-SHA256 (ruby/alexandria-0.6.5.tar.gz) = ecfd78c9be3cfe4c2a5732425ceb8f19fbc95a123f9a13fc36717f2b16ca358f
-SIZE (ruby/alexandria-0.6.5.tar.gz) = 2970519
+MD5 (ruby/alexandria-0.6.6.tar.gz) = 76bc7054b19e033c1448346fa3232d64
+SHA256 (ruby/alexandria-0.6.6.tar.gz) = 42a9c81288b13190928166c67592426d893a8fba98293fca98e1fb9f36054ce0
+SIZE (ruby/alexandria-0.6.6.tar.gz) = 2990953
diff -ruNa alexandria/files/patch-Rakefile alexandria/files/patch-Rakefile
--- alexandria/files/patch-Rakefile	1970-01-01 03:00:00.000000000 +0300
+++ alexandria/files/patch-Rakefile	2010-06-26 21:03:15.000000000 +0400
@@ -0,0 +1,14 @@
+--- Rakefile	2010-06-17 21:28:36.000000000 +0400
++++ Rakefile	2010-06-26 20:56:17.000000000 +0400
+@@ -103,9 +103,9 @@
+   install_task.install_icons(icon_files, "#{SHARE}/icons")
+   install_task.install('data/app-icon/32x32', 'data/app-icon/32x32/*.xpm', "#{SHARE}/pixmaps")
+ 
+-  install_task.install('','schemas/alexandria.schemas', "#{SHARE}/gconf")
++  install_task.install('','schemas/alexandria.schemas', "#{PREFIX}/etc/gconf")
+   install_task.install('', 'alexandria.desktop', "#{SHARE}/applications")
+-  install_task.install('doc','doc/alexandria.1', "#{SHARE}/man/man1")
++  install_task.install('doc','doc/alexandria.1', "#{PREFIX}/man/man1")
+ 
+ end
+ 
diff -ruNa alexandria/files/patch-tasks.rb alexandria/files/patch-tasks.rb
--- alexandria/files/patch-tasks.rb	2009-04-27 11:54:31.000000000 +0400
+++ alexandria/files/patch-tasks.rb	1970-01-01 03:00:00.000000000 +0300
@@ -1,11 +0,0 @@
---- tasks.rb.org	2009-04-15 08:01:49.000000000 +0900
-+++ tasks.rb	2009-04-15 08:02:03.000000000 +0900
-@@ -397,7 +397,7 @@
-     end
- 
-     def manpage_installation
--      man_dir = File.join(File.join(sharedir, 'man'), 'man1')
-+      man_dir = File.join(File.join(@prefix, 'man'), 'man1')
-       [['doc', build.doc.man_files, man_dir, 0644]]
-     end
- 
diff -ruNa alexandria/pkg-plist alexandria/pkg-plist
--- alexandria/pkg-plist	2009-11-15 02:24:57.000000000 +0300
+++ alexandria/pkg-plist	2010-06-26 20:47:33.000000000 +0400
@@ -5,15 +5,18 @@
 %%RUBY_SITELIBDIR%%/alexandria/book_providers/adlibris.rb
 %%RUBY_SITELIBDIR%%/alexandria/book_providers/amazon_aws.rb
 %%RUBY_SITELIBDIR%%/alexandria/book_providers/amazon_ecs_util.rb
-%%RUBY_SITELIBDIR%%/alexandria/book_providers/bn.rb
+%%RUBY_SITELIBDIR%%/alexandria/book_providers/barnes_and_noble.rb
 %%RUBY_SITELIBDIR%%/alexandria/book_providers/bol_it.rb
 %%RUBY_SITELIBDIR%%/alexandria/book_providers/deastore.rb
+%%RUBY_SITELIBDIR%%/alexandria/book_providers/douban.rb
 %%RUBY_SITELIBDIR%%/alexandria/book_providers/ibs_it.rb
 %%RUBY_SITELIBDIR%%/alexandria/book_providers/mcu.rb
 %%RUBY_SITELIBDIR%%/alexandria/book_providers/proxis.rb
+%%RUBY_SITELIBDIR%%/alexandria/book_providers/pseudomarc.rb
 %%RUBY_SITELIBDIR%%/alexandria/book_providers/renaud.rb
 %%RUBY_SITELIBDIR%%/alexandria/book_providers/siciliano.rb
 %%RUBY_SITELIBDIR%%/alexandria/book_providers/thalia.rb
+%%RUBY_SITELIBDIR%%/alexandria/book_providers/web.rb
 %%RUBY_SITELIBDIR%%/alexandria/book_providers/webster_it.rb
 %%RUBY_SITELIBDIR%%/alexandria/book_providers/worldcat.rb
 %%RUBY_SITELIBDIR%%/alexandria/book_providers/z3950.rb
@@ -23,6 +26,7 @@
 %%RUBY_SITELIBDIR%%/alexandria/execution_queue.rb
 %%RUBY_SITELIBDIR%%/alexandria/export_library.rb
 %%RUBY_SITELIBDIR%%/alexandria/import_library.rb
+%%RUBY_SITELIBDIR%%/alexandria/import_library_csv.rb
 %%RUBY_SITELIBDIR%%/alexandria/logging.rb
 %%RUBY_SITELIBDIR%%/alexandria/models/book.rb
 %%RUBY_SITELIBDIR%%/alexandria/models/library.rb
@@ -34,6 +38,7 @@
 %%RUBY_SITELIBDIR%%/alexandria/smart_library.rb
 %%RUBY_SITELIBDIR%%/alexandria/ui.rb
 %%RUBY_SITELIBDIR%%/alexandria/ui/callbacks.rb
+%%RUBY_SITELIBDIR%%/alexandria/ui/completion_models.rb
 %%RUBY_SITELIBDIR%%/alexandria/ui/dialogs/about_dialog.rb
 %%RUBY_SITELIBDIR%%/alexandria/ui/dialogs/acquire_dialog.rb
 %%RUBY_SITELIBDIR%%/alexandria/ui/dialogs/alert_dialog.rb
@@ -50,18 +55,18 @@
 %%RUBY_SITELIBDIR%%/alexandria/ui/dialogs/smart_library_properties_dialog.rb
 %%RUBY_SITELIBDIR%%/alexandria/ui/dialogs/smart_library_properties_dialog_base.rb
 %%RUBY_SITELIBDIR%%/alexandria/ui/dndable.rb
+%%RUBY_SITELIBDIR%%/alexandria/ui/glade_base.rb
+%%RUBY_SITELIBDIR%%/alexandria/ui/gtk_thread_help.rb
+%%RUBY_SITELIBDIR%%/alexandria/ui/icons.rb
 %%RUBY_SITELIBDIR%%/alexandria/ui/iconview.rb
 %%RUBY_SITELIBDIR%%/alexandria/ui/iconview_tooltips.rb
 %%RUBY_SITELIBDIR%%/alexandria/ui/init.rb
 %%RUBY_SITELIBDIR%%/alexandria/ui/libraries_combo.rb
 %%RUBY_SITELIBDIR%%/alexandria/ui/listview.rb
+%%RUBY_SITELIBDIR%%/alexandria/ui/main_app.rb
 %%RUBY_SITELIBDIR%%/alexandria/ui/multi_drag_treeview.rb
 %%RUBY_SITELIBDIR%%/alexandria/ui/sidepane.rb
 %%RUBY_SITELIBDIR%%/alexandria/ui/ui_manager.rb
-%%RUBY_SITELIBDIR%%/alexandria/ui/completion_models.rb
-%%RUBY_SITELIBDIR%%/alexandria/ui/glade_base.rb
-%%RUBY_SITELIBDIR%%/alexandria/ui/icons.rb
-%%RUBY_SITELIBDIR%%/alexandria/ui/main_app.rb
 %%RUBY_SITELIBDIR%%/alexandria/undo_manager.rb
 %%RUBY_SITELIBDIR%%/alexandria/utils.rb
 %%RUBY_SITELIBDIR%%/alexandria/version.rb
@@ -85,8 +90,8 @@
 %%DATADIR%%/icons/lookup.png
 %%DATADIR%%/icons/more.png
 %%DATADIR%%/icons/no_cover.png
-%%DATADIR%%/icons/smart_library_small.png
 %%DATADIR%%/icons/smart_library.png
+%%DATADIR%%/icons/smart_library_small.png
 %%DATADIR%%/icons/star_set.png
 %%DATADIR%%/icons/star_unset.png
 %%DATADIR%%/icons/view_as_icons.png
@@ -95,8 +100,8 @@
 %%DATADIR%%/ui/popups.xml
 %%DATADIR%%/web-themes/clean/clean.css
 %%DATADIR%%/web-themes/clean/preview.jpg
-%%DATADIR%%/web-themes/list/preview.jpg
 %%DATADIR%%/web-themes/list/list.css
+%%DATADIR%%/web-themes/list/preview.jpg
 share/applications/alexandria.desktop
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
 %%PORTDOCS%%%%DOCSDIR%%/BUGS
@@ -135,7 +140,6 @@
 share/gnome/help/alexandria/C/settings.xml
 share/gnome/help/alexandria/C/smart-libraries.xml
 share/gnome/help/alexandria/C/working-with-libraries.xml
-share/gnome/help/alexandria/C/#settings.xml#
 share/gnome/help/alexandria/fr/alexandria.xml
 share/gnome/help/alexandria/fr/figures/alexandria_add_button.png
 share/gnome/help/alexandria/fr/figures/alexandria_add_by_isbn_1.png
@@ -206,28 +210,27 @@
 share/locale/sv/LC_MESSAGES/alexandria.mo
 share/locale/uk/LC_MESSAGES/alexandria.mo
 share/locale/zh_TW/LC_MESSAGES/alexandria.mo
-share/menu/alexandria
 share/omf/alexandria/alexandria-C.omf
 share/omf/alexandria/alexandria-fr.omf
+share/pixmaps/alexandria.xpm
 share/sounds/alexandria/bad_scan.wav
 share/sounds/alexandria/good_scan.wav
 share/sounds/alexandria/scanning.wav
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrm share/sounds/alexandria
 @dirrm share/omf/alexandria
- at dirrmtry share/menu
- at dirrmtry share/icons/hicolor/16x16/apps
- at dirrmtry share/icons/hicolor/16x16
- at dirrmtry share/icons/hicolor/22x22/apps
- at dirrmtry share/icons/hicolor/22x22
- at dirrmtry share/icons/hicolor/24x24/apps
- at dirrmtry share/icons/hicolor/24x24
- at dirrmtry share/icons/hicolor/32x32/apps
- at dirrmtry share/icons/hicolor/32x32
- at dirrmtry share/icons/hicolor/48x48/apps
- at dirrmtry share/icons/hicolor/48x48
 @dirrmtry share/icons/hicolor/scalable/apps
 @dirrmtry share/icons/hicolor/scalable
+ at dirrmtry share/icons/hicolor/48x48/apps
+ at dirrmtry share/icons/hicolor/48x48
+ at dirrmtry share/icons/hicolor/32x32/apps
+ at dirrmtry share/icons/hicolor/32x32
+ at dirrmtry share/icons/hicolor/24x24/apps
+ at dirrmtry share/icons/hicolor/24x24
+ at dirrmtry share/icons/hicolor/22x22/apps
+ at dirrmtry share/icons/hicolor/22x22
+ at dirrmtry share/icons/hicolor/16x16/apps
+ at dirrmtry share/icons/hicolor/16x16
 @dirrmtry share/icons/hicolor
 @dirrm share/gnome/help/alexandria/ja/figures
 @dirrm share/gnome/help/alexandria/ja


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list