Check-in [603d37285a]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Another example |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
603d37285ab7ca1a18051ad4e9401ad2 |
User & Date: | nicobrevin@gmail.com 2014-01-23 06:43:02 |
Context
2014-01-23
| ||
06:47 | anally retentive tweaks check-in: 38c72930ed user: nicobrevin@gmail.com tags: trunk | |
06:43 | Another example check-in: 603d37285a user: nicobrevin@gmail.com tags: trunk | |
2014-01-10
| ||
20:22 | version bump 1.0.2 check-in: 0f609efd21 user: jls@semicomplete.com tags: trunk, v1.0.2 | |
Changes
Added examples/fpm-with-system-ruby/Makefile.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | # # feel free to change these to whatever makes sense # # debian package we rely on RUBY_PACKAGE=ruby # and the executable that comes from it RUBY_BIN=/usr/bin/ruby # the version we name the deb VERSION=1.0.2 # where to get the sauce GIT_URL=https://github.com/jordansissel/fpm.git # the tag we checkout to build from TAG_SPEC=refs/tags/v$(VERSION) # these chaps are a bit more hardcoded CHECKOUT_DIR=fpm-checkout BUILD_DIR=build INSTALL_DIR=$(BUILD_DIR)/usr/lib/fpm GEM_PATH:=$(shell readlink -f .)/build/gem BIN_DIR=$(BUILD_DIR)/usr/bin FPM_BIN=$(BIN_DIR)/fpm BUNDLE_BIN=$(GEM_PATH)/bin/bundle BUNDLE_CMD=$(RUBY_CMD) $(BUNDLE_BIN) FPM_CMD=$(FPM_BIN) GEM_CMD=$(RUBY_BIN) -S gem .PHONY: clean clean: rm -rf $(CHECKOUT_DIR) rm -rf $(BUILD_DIR) rm -f fpm*.deb $(CHECKOUT_DIR): rm -rf $(CHECKOUT_DIR) git clone $(GIT_URL) $(CHECKOUT_DIR) --depth 1 cd $(CHECKOUT_DIR) && git checkout $(TAG_SPEC) $(BUNDLE_BIN): $(GEM_CMD) install bundler --install-dir=$(GEM_PATH) --no-ri --no-rdoc $(FPM_BIN): mkdir --parents $(BIN_DIR) # don't hate me - perhaps just show me a better way? echo "#! $(RUBY_BIN)" > $(FPM_BIN) echo 'load File.dirname($$0) + "/../lib/fpm/bundle/bundler/setup.rb"' >> $(FPM_BIN) echo 'require "fpm"' >> $(FPM_BIN) echo 'require "fpm/command"' >> $(FPM_BIN) echo 'exit(FPM::Command.run || 0)' >> $(FPM_BIN) chmod +x $(FPM_BIN) .PHONY: install install: $(CHECKOUT_DIR) $(BUNDLE_BIN) $(FPM_BIN) mkdir --parents $(INSTALL_DIR) cd $(CHECKOUT_DIR) && GEM_PATH=$(GEM_PATH) $(BUNDLE_CMD) install --without=development --standalone cd $(CHECKOUT_DIR) && gem build fpm.gemspec tar -xf $(CHECKOUT_DIR)/fpm*gem -C $(BUILD_DIR) tar --touch -xf $(BUILD_DIR)/data.tar.gz -C $(INSTALL_DIR) cp -r $(CHECKOUT_DIR)/bundle $(INSTALL_DIR)/bundle .PHONY: package package: install $(FPM_BIN) -s dir -t deb -n fpm -d $(RUBY_PACKAGE) -v $(VERSION) -C $(BUILD_DIR) usr |
Added examples/fpm-with-system-ruby/README.md.
> > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # About - build and install dependency on a ruby1.9 of some kind - does not need root to package - has its own GEM_DIR to keep its dependencies isolated - installation does not install any gems in to your ruby environment - installs in to standard locations /usr/{bin,lib}/fpm - doesn't depend on having fpm installed for packaging to work # Dependencies - build-essential (perhaps more, but basically the standard packages you need for deb packaging) - ruby1.9.3 (can be changed) # Usage - $ cd examples/fpm-with-system-ruby - $ make package |