Check-in [38c72930ed]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | anally retentive tweaks |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
38c72930ed62e8b550784d6702919b28 |
User & Date: | nicobrevin@gmail.com 2014-01-23 06:47:55 |
Context
2014-03-07
| ||
07:19 | Merge pull request #624 from nicobrevin/feature-another-fpm-example Feature: another fpm example check-in: 335ef6932f user: jls@semicomplete.com tags: trunk | |
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 | |
Changes
Changes to examples/fpm-with-system-ruby/Makefile.
︙ | ︙ | |||
8 9 10 11 12 13 14 | # 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) | < | < > | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # 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) CHECKOUT_DIR=fpm-checkout BUILD_DIR=build LIB_DIR=$(BUILD_DIR)/usr/lib/fpm BIN_DIR=$(BUILD_DIR)/usr/bin GEM_PATH:=$(shell readlink -f .)/build/gem 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 |
︙ | ︙ | |||
36 37 38 39 40 41 42 | 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) | | | | | | 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 | 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) # Couldn't think of a nice way to do this, so here is this code turd 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 $(LIB_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 $(LIB_DIR) cp -r $(CHECKOUT_DIR)/bundle $(LIB_DIR)/bundle .PHONY: package package: install $(FPM_BIN) -s dir -t deb -n fpm -d $(RUBY_PACKAGE) -v $(VERSION) -C $(BUILD_DIR) usr |
Changes to examples/fpm-with-system-ruby/README.md.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # 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) | | | < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # 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) - ruby and ruby-dev # Usage - $ cd examples/fpm-with-system-ruby && make package |