Class: DevBall::PkgSpec::Pecl

Inherits:
Base
  • Object
show all
Defined in:
lib/devball/pkgspec/pecl.rb

Instance Method Summary collapse

Methods inherited from Base

#ball, #ball_file_name, #ball_name, #ball_version, #build_concurrent?, #build_dir_name, #build_targets, #configure_params, #configure_script_name, #depends_on, depends_on, find, #install_links, #install_service_links, #install_targets, #link_mappings, load_packages, #package_install_dir, #package_name, #recursive_depends_on, register_package, #remove_build, #remove_install, set_ball, set_lib_ball, set_patch, #step_environment_setup, #step_patch, #step_setup_links, #to_s

Instance Method Details

#step_buildObject



13
14
15
# File 'lib/devball/pkgspec/pecl.rb', line 13

def step_build()
	# gems is all three steps in one at install time.
end

#step_configureObject



9
10
11
# File 'lib/devball/pkgspec/pecl.rb', line 9

def step_configure()
	# pecl is all three steps in one at install time.
end

#step_extractObject



6
7
# File 'lib/devball/pkgspec/pecl.rb', line 6

def step_extract()
end

#step_installObject



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/devball/pkgspec/pecl.rb', line 17

def step_install()
	Dir.chdir($package_dir) {|dir|
		if(!system("pecl", "install", ball()))
			raise(InstallFailed, "Could not install pecl package: #{$?}")
		end
		if(!system("pecl", "list-files", "apc")) # pecl install doesn't seem to always return an error code if it fails, so double check
			raise(InstallFailed, "Could not install pecl package: #{$?}")
		end
	}
	return ["Php"]
end

#step_uninstallObject



29
30
31
32
# File 'lib/devball/pkgspec/pecl.rb', line 29

def step_uninstall()
	system("pecl", "uninstall", ball())
	super()
end