Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
## | ||
# Makefile for python_dateutil | ||
## | ||
|
||
# Project info | ||
Project = python-dateutil | ||
ProjectName = python_dateutil | ||
UserType = Developer | ||
ToolType = Library | ||
|
||
# Include common makefile targets for B&I | ||
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/Common.make | ||
|
||
PYTHON_VERSIONS = $(shell \ | ||
for python in /usr/bin/python2.*[0-9]; do \ | ||
"$${python}" -c 'import sys; print "%d.%d" % tuple(sys.version_info[0:2])'; \ | ||
done; \ | ||
) | ||
|
||
PYTHON = /usr/bin/python | ||
|
||
build:: extract_source | ||
$(_v) for version in $(PYTHON_VERSIONS); do \ | ||
echo "Building for Python $${version}..."; \ | ||
cd $(OBJROOT)/$(Project) && $(Environment) "$(PYTHON)$${version}" setup.py build; \ | ||
done; | ||
|
||
install:: | ||
$(_v) for version in $(PYTHON_VERSIONS); do \ | ||
extras="$$("$(PYTHON)$${version}" -c 'import sys; print sys.prefix')/Extras"; \ | ||
echo "Installing for Python $${version}..."; \ | ||
cd $(OBJROOT)/$(Project) && $(Environment) "$(PYTHON)$${version}" setup.py install --home="$${extras}" --root="$(DSTROOT)"; \ | ||
for so in $$(find "$(DSTROOT)$${extras}" -type f -name '*.so'); do $(STRIP) -Sx "$${so}"; done; \ | ||
done; | ||
|
||
# | ||
# Automatic Extract & Patch | ||
# | ||
|
||
AEP = YES | ||
AEP_ProjVers = $(Project)-1.5 | ||
AEP_Filename = $(AEP_ProjVers).tar.gz | ||
AEP_ExtractDir = $(AEP_ProjVers) | ||
AEP_Patches = | ||
|
||
extract_source:: | ||
ifeq ($(AEP),YES) | ||
@echo "Extracting source for $(Project)..." | ||
$(_v) $(MKDIR) -p $(OBJROOT) | ||
$(_v) $(TAR) -C $(OBJROOT) -xzf $(SRCROOT)/$(AEP_Filename) | ||
$(_v) $(RMDIR) $(OBJROOT)/$(Project) | ||
$(_v) $(MV) $(OBJROOT)/$(AEP_ExtractDir) $(OBJROOT)/$(Project) | ||
$(_v) for patchfile in $(AEP_Patches); do \ | ||
cd $(OBJROOT)/$(Project) && patch -lp0 < $(SRCROOT)/patches/$$patchfile; \ | ||
done | ||
endif | ||
|
||
# | ||
# Open Source Hooey | ||
# | ||
|
||
OSV = /usr/local/OpenSourceVersions | ||
OSL = /usr/local/OpenSourceLicenses | ||
|
||
install:: install-ossfiles | ||
|
||
install-ossfiles:: | ||
$(_v) $(INSTALL_DIRECTORY) $(DSTROOT)/$(OSV) | ||
$(_v) $(INSTALL_FILE) $(SRCROOT)/$(ProjectName).plist $(DSTROOT)/$(OSV)/$(ProjectName).plist | ||
$(_v) $(INSTALL_DIRECTORY) $(DSTROOT)/$(OSL) | ||
$(_v) $(INSTALL_FILE) $(OBJROOT)/$(Project)/LICENSE $(DSTROOT)/$(OSL)/$(ProjectName).txt |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<plist version="1.0"> | ||
<dict> | ||
<key>OpenSourceProject</key> | ||
<string>python_dateutil</string> | ||
<key>OpenSourceVersion</key> | ||
<string>1.5</string> | ||
<key>OpenSourceWebsiteURL</key> | ||
<string>http://labix.org/python-dateutil</string> | ||
<key>OpenSourceURL</key> | ||
<string>http://labix.org/download/python-dateutil/python-dateutil-1.5.tar.gz</string> | ||
<key>OpenSourceMD5</key> | ||
<string>35f3732db3f2cc4afdc68a8533b60a52</string> | ||
<key>OpenSourceImportDate</key> | ||
<string>2010-08-11</string> | ||
<key>OpenSourceModifications</key> | ||
<array/> | ||
<key>OpenSourceLicense</key> | ||
<string>Python</string> | ||
<key>OpenSourceLicenseFile</key> | ||
<string>python_dateutil.txt</string> | ||
</dict> | ||
</plist> |