Commits

Erik Southworth  committed c95c9e9

bump to 3.160

  • Participants
  • Parent commits 34ce6e0

Comments (0)

Files changed (1)

 #! /usr/bin/env python
 # encoding: utf-8
 # Geany 0.18
-# Erik Southworth, 2009,2010 (s6v)
+# Erik Southworth, 2009,2010,2011 (dvs)
 
 import Options
 import os
 APPNAME = 'jungledisk-desktop'
 
 NAME = 'JungleDisk Desktop'
-VERSION = '3.08'
+VERSION = '3.160'
 BUGREPORT = 'http://bitbucket.org/superstition/jungledisk-desktop/issues/'
 HOMEPAGE = 'http://bitbucket.org/superstition/jungledisk-desktop/wiki/'
-RELEASE = '2009,2010'
-REVISION = '18 July 2010'
+RELEASE = '2009,2010,2011'
+REVISION = '02 October 2011'
 
 PKGVER = VERSION.replace('.', '')
 URL='http://downloads.jungledisk.com/jungledisk/'
 PACKAGE='junglediskdesktop'+PKGVER+'.tar.gz'
 PACKAGE64='junglediskdesktop64-'+PKGVER+'.tar.gz'
 
+NAUTILUSPLUGIN='http://downloads.jungledisk.com/31beta/nautilus-jungledisk-1.0.tar.gz'
+
 top = '.'
 out = 'build'
 
-def set_options(opt):
-	opt.tool_options('gnu_dirs')
+def set_options(ctx):
+	ctx.tool_options('gnu_dirs')
 
-	opt.parser.set_defaults(prefix='/usr')
-	opt.parser.set_defaults(SYSCONFDIR='/etc')
+	ctx.parser.set_defaults(prefix='/usr')
+	ctx.parser.set_defaults(SYSCONFDIR='/etc')
 
-	opt.add_option('--maintainer', action='store_true', default=False,
+	ctx.add_option('--maintainer', action='store_true', default=False,
 		help='is: maintainer build from VC sources',
 		dest='MAINTAINER')
 
-	opt.add_option_group('Report bugs to <'+BUGREPORT+'>')
+	ctx.add_option_group('Report bugs to <'+BUGREPORT+'>')
 
-def configure(conf):
-	conf.check_tool(['gnu_dirs', 'misc'])
+def configure(ctx):
+	ctx.check_tool(['gnu_dirs', 'misc'])
 
 	if Options.options.MAINTAINER:
-		conf.env.MAINTAINER = True
+		ctx.env.MAINTAINER = True
 
-	conf.sub_config('desktop')
-	conf.sub_config('man')
+	ctx.sub_config('desktop')
+	ctx.sub_config('man')
 
-def build(bld):
+def build(ctx):
 	def fetch_archive(self):
 		if platform.machine() == 'x86_64':
 			PACKAGE = PACKAGE64
 		print('=== downloading {0} ===').format(PACKAGE)
 		print('{0}{1}').format(URL, PACKAGE)
 
-		dir = bld.path.abspath(bld.env)
+		dir = ctx.path.abspath(ctx.env)
 		dest = dir + 'junglediskdesktop.tar.gz'
 		urllib.urlretrieve(URL+PACKAGE, dest)
 		tar = tarfile.open(dest)
 		tar.extractall(path=dir)
 		tar.close()
 
-	bld.path.ensure_dir_node_from_path(['junglediskdesktop'])
+	def fetch_plugin(self):
+		print('=== downloading {0} ===').format('Nautilus-Plugin')
+		print('{0}').format(NAUTILUSPLUGIN)
 
-	bld.new_task_gen(
+		dir = ctx.path.abspath(ctx.env)
+		dest = dir + 'nautilus-jungledisk.tar.gz'
+		urllib.urlretrieve(NAUTILUSPLUGIN, dest)
+		tar = tarfile.open(dest)
+		tar.extractall(path=dir)
+		tar.close()
+
+	ctx.path.ensure_dir_node_from_path(['junglediskdesktop'])
+
+	ctx.new_task_gen(
 		name			= 'wget',
 		target			= 'junglediskdesktop/junglediskdesktop junglediskdesktop/jungledisk junglediskdesktop/junglediskdesktop.png',
 		rule			= fetch_archive,
 	)
-	bld.install_files('${BINDIR}', 'junglediskdesktop/junglediskdesktop', chmod=0755)
-	bld.install_files('${BINDIR}', 'junglediskdesktop/jungledisk', chmod=0755)
-	bld.install_files('${DATADIR}/icons/hicolor/32x32/apps',
+	ctx.install_files('${BINDIR}', 'junglediskdesktop/junglediskdesktop', chmod=0755)
+	ctx.install_files('${BINDIR}', 'junglediskdesktop/jungledisk', chmod=0755)
+	ctx.install_files('${DATADIR}/icons/hicolor/32x32/apps',
 		'junglediskdesktop/junglediskdesktop.png')
 
-	bld.add_subdirs('desktop')
-	bld.add_subdirs('man')
+	ctx.new_task_gen(
+		name			= 'wget',
+		target			= 'nautilus-jungledisk-1.0',
+		rule			= fetch_plugin,
+	)
+
+	ctx.add_subdirs('desktop')
+	ctx.add_subdirs('man')
 
 def dist_hook():
 	# pkg man pages